Function at 0x470500
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b1120]
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 0x470737
mov eax, esi
lea edx, [eax + 2]
jmp 0x470530
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x470530
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x470737
cmp word [esi + 2], 0x3a
jne 0x470737
cmp word [esi + 4], 0x5c
lea eax, [esi + 4]
jne 0x470737
push ebx
push 1
lea ecx, [ebp - 0x10]
push ecx
push 0x49c298
push ebx
push str._:____
push eax
mov dword [ebp - 0x10], ebx
call fcn.0046ed80
mov edi, dword [ebp - 0x10]
add esp, 0x1c
mov dword [ebp - 8], eax
test edi, edi
je 0x47073e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x470592
sub eax, edx
sar eax, 1
add eax, 2
mov dword [ebp - 0x1c], eax
lea eax, [eax + eax + 0xc]
cmp eax, 0x400
ja 0x4705c5
call fcn.0044a220
mov eax, esp
test eax, eax
je 0x4705db
mov dword [eax], 0xcccc
jmp 0x4705d8
push eax
call fcn.00448217
add esp, 4
test eax, eax
je 0x4705db
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x470716
push 2
push esi
push eax
mov dword [ebp - 0x18], ebx
call fcn.0044dce8
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 0x470601
sub ecx, edx
lea edi, [eax - 4]
add edi, 0xfffffffe
mov esi, edx
mov edx, ecx
lea ebx, [edi + 2]
jmp 0x470620
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x470620
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 0x470668
mov edi, ebx
mov dword [ebp - 0x18], 1
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x470654
mov ecx, dword [0x4a221c]
mov dword [edi], ecx
lea edx, [ebx + 6]
push 0x5c
push edx
call fcn.0044a60d
mov esi, eax
add esp, 8
test esi, esi
je 0x4706d5
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 0x4706a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0xb7
jne 0x4706d8
jmp 0x4706a7
mov ecx, dword [ebp - 8]
mov edx, 0x5c
mov word [esi], dx
lea eax, [esi + 2]
test ecx, ecx
jne 0x4706bb
inc dword [ebp - 0x14]
jmp 0x4706c2
mov dword [ebp - 8], 0
push 0x5c
push eax
call fcn.0044a60d
mov esi, eax
add esp, 8
test esi, esi
jne 0x470682
jmp 0x4706df
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x47071d
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
je 0x4706fe
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push esi
push ebx
push eax
call fcn.0044dce8
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x47071d
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 0x470705
jmp 0x47071d
mov dword [ebp - 8], 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.0042ef80
mov eax, dword [ebp - 0x10]
push eax
call fcn.004482e1
mov ebx, dword [ebp - 0x14]
add esp, 8
jmp 0x47073e
mov dword [ebp - 8], 0xa1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47074a
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.00447645
mov esp, ebp
pop ebp
ret