Function at 0x490c20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
cmp esi, ebx
je 0x490e57
mov eax, esi
lea edx, [eax + 2]
jmp 0x490c50
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x490c50
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x490e57
cmp word [esi + 2], 0x3a
jne 0x490e57
cmp word [esi + 4], 0x5c
lea eax, [esi + 4]
jne 0x490e57
push ebx
push 1
lea ecx, [ebp - 0x10]
push ecx
push 0x4c1540
push ebx
push str._:____
push eax
mov dword [ebp - 0x10], ebx
call fcn.0048f410
mov edi, dword [ebp - 0x10]
add esp, 0x1c
mov dword [ebp - 8], eax
test edi, edi
je 0x490e5e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490cb2
sub eax, edx
sar eax, 1
add eax, 2
mov dword [ebp - 0x1c], eax
lea eax, [eax + eax + 0xc]
cmp eax, 0x400
ja 0x490ce5
call fcn.0046d420
mov eax, esp
test eax, eax
je 0x490cfb
mov dword [eax], 0xcccc
jmp 0x490cf8
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x490cfb
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x490e36
push 2
push esi
push eax
mov dword [ebp - 0x18], ebx
call fcn.0046f008
add eax, 4
add esp, 0xc
xor edx, edx
mov ecx, edi
mov word [eax], dx
mov edx, ecx
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x490d21
sub ecx, edx
lea edi, [eax - 4]
add edi, 0xfffffffe
mov esi, edx
mov edx, ecx
lea ebx, [edi + 2]
jmp 0x490d40
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x490d40
mov eax, dword [ebp - 0x1c]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [ebx + eax*2 - 2], 0x5c
mov ebx, dword [ebp - 0xc]
je 0x490d88
mov edi, ebx
mov dword [ebp - 0x18], 1
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x490d74
mov ecx, dword [0x4c46a8]
mov dword [edi], ecx
lea edx, [ebx + 6]
push 0x5c
push edx
call fcn.0046a90d
mov esi, eax
add esp, 8
test esi, esi
je 0x490df5
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push eax
push ebx
mov word [esi], ax
call edi
test eax, eax
jne 0x490dc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0xb7
jne 0x490df8
jmp 0x490dc7
mov ecx, dword [ebp - 8]
mov edx, 0x5c
mov word [esi], dx
lea eax, [esi + 2]
test ecx, ecx
jne 0x490ddb
inc dword [ebp - 0x14]
jmp 0x490de2
mov dword [ebp - 8], 0
push 0x5c
push eax
call fcn.0046a90d
mov esi, eax
add esp, 8
test esi, esi
jne 0x490da2
jmp 0x490dff
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x490e3d
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
je 0x490e1e
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push esi
push ebx
push eax
call fcn.0046f008
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x490e3d
mov edx, dword [ebp + 8]
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x490e25
jmp 0x490e3d
mov dword [ebp - 8], 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041a6d0
mov eax, dword [ebp - 0x10]
push eax
call fcn.004684a1
mov ebx, dword [ebp - 0x14]
add esp, 8
jmp 0x490e5e
mov dword [ebp - 8], 0xa1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x490e6a
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, ebx
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret