Function at 0x491480
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce724]
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 0x4916b7
mov eax, esi
lea edx, [eax + 2]
jmp 0x4914b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4914b0
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x4916b7
cmp word [esi + 2], 0x3a
jne 0x4916b7
cmp word [esi + 4], 0x5c
lea eax, [esi + 4]
jne 0x4916b7
push ebx
push 1
lea ecx, [ebp - 0x10]
push ecx
push 0x4c2810
push ebx
push str._:____
push eax
mov dword [ebp - 0x10], ebx
call fcn.0048fc80
mov edi, dword [ebp - 0x10]
add esp, 0x1c
mov dword [ebp - 8], eax
test edi, edi
je 0x4916be
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491512
sub eax, edx
sar eax, 1
add eax, 2
mov dword [ebp - 0x1c], eax
lea eax, [eax + eax + 0xc]
cmp eax, 0x400
ja 0x491545
call fcn.0046dc70
mov eax, esp
test eax, eax
je 0x49155b
mov dword [eax], 0xcccc
jmp 0x491558
push eax
call fcn.00468c27
add esp, 4
test eax, eax
je 0x49155b
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x491696
push 2
push esi
push eax
mov dword [ebp - 0x18], ebx
call fcn.0046f858
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 0x491581
sub ecx, edx
lea edi, [eax - 4]
add edi, 0xfffffffe
mov esi, edx
mov edx, ecx
lea ebx, [edi + 2]
jmp 0x4915a0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4915a0
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 0x4915e8
mov edi, ebx
mov dword [ebp - 0x18], 1
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4915d4
mov ecx, dword [0x4c5978]
mov dword [edi], ecx
lea edx, [ebx + 6]
push 0x5c
push edx
call fcn.0046b15d
mov esi, eax
add esp, 8
test esi, esi
je 0x491655
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 0x491624
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0xb7
jne 0x491658
jmp 0x491627
mov ecx, dword [ebp - 8]
mov edx, 0x5c
mov word [esi], dx
lea eax, [esi + 2]
test ecx, ecx
jne 0x49163b
inc dword [ebp - 0x14]
jmp 0x491642
mov dword [ebp - 8], 0
push 0x5c
push eax
call fcn.0046b15d
mov esi, eax
add esp, 8
test esi, esi
jne 0x491602
jmp 0x49165f
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x49169d
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
je 0x49167e
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push esi
push ebx
push eax
call fcn.0046f858
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x49169d
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 0x491685
jmp 0x49169d
mov dword [ebp - 8], 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041a740
mov eax, dword [ebp - 0x10]
push eax
call fcn.00468cf1
mov ebx, dword [ebp - 0x14]
add esp, 8
jmp 0x4916be
mov dword [ebp - 8], 0xa1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4916ca
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.00467fff
mov esp, ebp
pop ebp
ret