Function at 0x420950
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4af6f0]
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 - 0xc], ebx
cmp esi, ebx
je 0x420b74
mov eax, esi
lea edx, [eax + 2]
jmp 0x420980
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420980
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x420b74
cmp word [esi + 2], 0x3a
jne 0x420b74
cmp word [esi + 4], 0x5c
lea eax, [esi + 4]
jne 0x420b74
push ebx
push 1
lea ecx, [ebp - 0x10]
push ecx
push 0x48c8a4
push ebx
push str._:____
push eax
mov dword [ebp - 0x10], ebx
call fcn.0041f0f0
mov edi, dword [ebp - 0x10]
add esp, 0x1c
mov dword [ebp - 8], eax
test edi, edi
je 0x420b7b
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4209e2
sub eax, edx
sar eax, 1
add eax, 2
mov dword [ebp - 0x18], eax
lea eax, [eax + eax + 0xc]
cmp eax, 0x400
ja 0x420a1c
call fcn.004705a0
mov ebx, esp
test ebx, ebx
je 0x420b56
mov dword [ebx], 0xcccc
add ebx, 8
jmp 0x420a34
push eax
call fcn.00470108
add esp, 4
test eax, eax
je 0x420a32
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
test ebx, ebx
je 0x420b56
push 2
push esi
push ebx
mov dword [ebp - 0x14], 0
call fcn.0041df30
mov eax, edi
add esp, 0xc
mov ecx, eax
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x420a53
mov edi, ebx
sub eax, ecx
mov esi, ecx
add edi, 0xfffffffe
jmp 0x420a70
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x420a70
mov edx, dword [ebp - 0x18]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [ebx + edx*2 - 2], 0x5c
je 0x420ab4
mov edi, ebx
mov dword [ebp - 0x14], 1
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x420aa1
mov eax, dword [0x491588]
mov dword [edi], eax
lea ecx, [ebx + 6]
push 0x5c
push ecx
call fcn.00472c57
mov esi, eax
add esp, 8
test esi, esi
je 0x420b1e
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
push edx
push ebx
mov word [esi], dx
call edi
test eax, eax
jne 0x420aed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp eax, 0xb7
jne 0x420b21
jmp 0x420af0
mov eax, dword [ebp - 8]
mov ecx, 0x5c
mov word [esi], cx
add esi, 2
test eax, eax
jne 0x420b04
inc dword [ebp - 0xc]
jmp 0x420b0b
mov dword [ebp - 8], 0
push 0x5c
push esi
call fcn.00472c57
mov esi, eax
add esp, 8
test esi, esi
jne 0x420ace
jmp 0x420b25
mov eax, dword [ebp - 8]
test eax, eax
jne 0x420b5d
cmp dword [ebp - 0x14], 0
je 0x420b3e
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
push edx
push ebx
push eax
call fcn.0041df30
add esp, 0xc
jmp 0x420b5d
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 0x420b45
jmp 0x420b5d
mov dword [ebp - 8], 8
push ebx
call fcn.0042dc80
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0046ec03
mov ebx, dword [ebp - 0xc]
add esp, 8
jmp 0x420b7b
mov dword [ebp - 8], 0xa1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x420b87
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, ebx
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret