Function at 0x420930
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b06f0]
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 0x420b54
mov eax, esi
lea edx, [eax + 2]
jmp 0x420960
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420960
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x420b54
cmp word [esi + 2], 0x3a
jne 0x420b54
cmp word [esi + 4], 0x5c
lea eax, [esi + 4]
jne 0x420b54
push ebx
push 1
lea ecx, [ebp - 0x10]
push ecx
push 0x48d8a4
push ebx
push str._:____
push eax
mov dword [ebp - 0x10], ebx
call fcn.0041f0c0
mov edi, dword [ebp - 0x10]
add esp, 0x1c
mov dword [ebp - 8], eax
test edi, edi
je 0x420b5b
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4209c2
sub eax, edx
sar eax, 1
add eax, 2
mov dword [ebp - 0x18], eax
lea eax, [eax + eax + 0xc]
cmp eax, 0x400
ja 0x4209fc
call fcn.00470be0
mov ebx, esp
test ebx, ebx
je 0x420b36
mov dword [ebx], 0xcccc
add ebx, 8
jmp 0x420a14
push eax
call fcn.00470748
add esp, 4
test eax, eax
je 0x420a12
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
test ebx, ebx
je 0x420b36
push 2
push esi
push ebx
mov dword [ebp - 0x14], 0
call fcn.0041df20
mov eax, edi
add esp, 0xc
mov ecx, eax
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x420a33
mov edi, ebx
sub eax, ecx
mov esi, ecx
add edi, 0xfffffffe
jmp 0x420a50
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x420a50
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 0x420a94
mov edi, ebx
mov dword [ebp - 0x14], 1
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x420a81
mov eax, dword [0x492588]
mov dword [edi], eax
lea ecx, [ebx + 6]
push 0x5c
push ecx
call fcn.00473297
mov esi, eax
add esp, 8
test esi, esi
je 0x420afe
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 0x420acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp eax, 0xb7
jne 0x420b01
jmp 0x420ad0
mov eax, dword [ebp - 8]
mov ecx, 0x5c
mov word [esi], cx
add esi, 2
test eax, eax
jne 0x420ae4
inc dword [ebp - 0xc]
jmp 0x420aeb
mov dword [ebp - 8], 0
push 0x5c
push esi
call fcn.00473297
mov esi, eax
add esp, 8
test esi, esi
jne 0x420aae
jmp 0x420b05
mov eax, dword [ebp - 8]
test eax, eax
jne 0x420b3d
cmp dword [ebp - 0x14], 0
je 0x420b1e
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
push edx
push ebx
push eax
call fcn.0041df20
add esp, 0xc
jmp 0x420b3d
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 0x420b25
jmp 0x420b3d
mov dword [ebp - 8], 8
push ebx
call fcn.0042dc80
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0046f243
mov ebx, dword [ebp - 0xc]
add esp, 8
jmp 0x420b5b
mov dword [ebp - 8], 0xa1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x420b67
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.0046f33a
mov esp, ebp
pop ebp
ret