Function at 0x4c9a70
Capabilities:
Create directory

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2fc], 4
jne 0x4c9a96
mov ecx, dword [esi + 8]
lea eax, [esi + 8]
push eax
call dword [ecx + 0xc]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret
lea edx, [esp + 0x24]
push edx
call fcn.004ce2c0
mov eax, dword [esp + 0x2c]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x4c9b13
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push eax
push 0x7cf3e8
push 1
push edi
push 0x7cf488
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4c9b13
mov ecx, dword [esp + 0x1c]
lea ebx, [esi + 0x2f4]
push ecx
push ebx
call fcn.004c9d90
cmp esi, edi
je 0x4c9ae7
lea ecx, [esi + 8]
jmp 0x4c9ae9
xor ecx, ecx
mov eax, dword [ebx]
lea ebp, [esi + 0x2f8]
push ebp
push 0x7cf3f8
push ecx
push eax
call fcn.004c9dc0
test eax, eax
jge 0x4c9b48
push str.WOL_NOTINITIALIZED
push 0xffffffffffffffff
mov ecx, esi
call fcn.004ca020
mov dword [ebp], edi
lea ecx, [esp + 0x24]
mov dword [esi + 0x2fc], edi
mov dword [esi + 0x304], 0xffffffff
mov dword [esi + 0x308], str.WOL_NOTINITIALIZED
mov dword [esp + 0x24], 0x7ce064
call fcn.00424760
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
lea eax, [esi + 0x1f4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4c9ba5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x4c9ba5
call edi
mov eax, dword [str.WOL_DOWNLOADOPENERROR]
lea ecx, [esp + 0x24]
mov dword [esi + 0x2fc], 0
mov dword [esi + 0x304], 5
mov dword [esi + 0x308], eax
mov dword [esp + 0x24], 0x7ce064
call fcn.00424760
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
mov edx, dword [0x809d38]
push 1
push 0xf8
lea ecx, [esp + 0x1c]
lea edi, [esi + 0x171]
mov dword [esp + 0x1c], edx
call fcn.005dcfa0
mov ecx, dword [esp + 0x14]
mov al, byte [0x83ec0c]
push edi
lea edx, [esp + 0x18]
mov byte [ecx], al
lea eax, [esi + 0x1f4]
push eax
push 0x7f548c
push edx
call fcn.005dd5a0
mov eax, dword [0x809d38]
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
push 1
push 0xf8
call fcn.005dcfa0
mov ecx, dword [esp + 0x10]
mov dl, byte [0x83ec0c]
lea eax, [esi + 0x71]
push edi
mov byte [ecx], dl
push eax
lea ecx, [esp + 0x18]
push 0x7f548c
push ecx
call fcn.005dd5a0
mov edx, dword [esp + 0x38]
add esp, 0x10
mov eax, dword [ebx]
mov ecx, dword [edx + 8]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
mov edx, dword [eax]
lea ecx, [esi + 0x1b3]
push ecx
lea ecx, [esi + 0x192]
push ecx
lea ecx, [esi + 0x30]
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
jge 0x4c9cf9
mov ebx, dword [ebx]
mov ebp, dword [ebp]
lea eax, [esp + 0x1c]
xor edi, edi
mov edx, dword [ebx]
push eax
push 0x7e22c0
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
call dword [edx]
cmp eax, edi
jl 0x4c9c9f
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push 0x7cf3f8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp eax, edi
jl 0x4c9c9f
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea ecx, [esp + 0x18]
call fcn.004cac20
lea ecx, [esp + 0x1c]
call fcn.004cac10
mov eax, dword [str.WOL_DOWNLOADCONNECTERROR]
lea ecx, [esp + 0x10]
mov dword [esi + 0x2fc], edi
mov dword [esi + 0x304], 2
mov dword [esi + 0x308], eax
call fcn.005dd410
lea ecx, [esp + 0x14]
call fcn.005dd410
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x7ce064
call fcn.00424760
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
push esi
lea ecx, [esp + 0x20]
mov dword [esi + 0x2fc], 2
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x7d6938
call fcn.0042e430
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x30]
push edx
mov dword [esp + 0x30], 1
call fcn.004c4740
mov edi, 0x7ce064
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.00424760
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0xc]
lea edx, [esp + 0x2c]
push edx
call dword [eax + 4]
lea ecx, [esp + 0x30]
call fcn.004caed0
lea ecx, [esp + 0x10]
call fcn.005dd410
lea ecx, [esp + 0x14]
call fcn.005dd410
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], edi
test ecx, ecx
je 0x4c9d7e
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret