Function at 0x4168a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x416995
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x428]
push ecx
call fcn.004928dc
add esp, 0xc
lea edx, [ebp - 0x428]
mov dword [ebp - 0x634], edx
mov eax, dword [ebp - 0x634]
add eax, 2
mov dword [ebp - 0x638], eax
mov ecx, dword [ebp - 0x634]
mov dx, word [ecx]
mov word [ebp - 0x63a], dx
add dword [ebp - 0x634], 2
cmp word [ebp - 0x63a], 0
jne 0x4168f0
mov eax, dword [ebp - 0x634]
sub eax, dword [ebp - 0x638]
sar eax, 1
mov dword [ebp - 0x640], eax
mov ecx, dword [ebp - 0x640]
mov dword [ebp - 0x220], ecx
cmp dword [ebp - 0x220], 0
jbe 0x416970
mov edx, dword [ebp - 0x220]
movzx eax, word [ebp + edx*2 - 0x42a]
cmp eax, 0x2f
je 0x416960
mov ecx, dword [ebp - 0x220]
movzx edx, word [ebp + ecx*2 - 0x42a]
cmp edx, 0x5c
jne 0x416970
xor eax, eax
mov ecx, dword [ebp - 0x220]
mov word [ebp + ecx*2 - 0x42a], ax
lea edx, [ebp - 0x428]
push edx
call fcn.0040f960
add esp, 4
movzx eax, al
test eax, eax
jne 0x416995
push 0
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x4169a4
jmp 0x416b33
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
movzx ecx, word [eax]
test ecx, ecx
je 0x4169f6
mov edx, dword [ebp - 0x21c]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x4169dc
mov ecx, dword [ebp - 0x21c]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x4169e5
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x21c]
add ecx, 2
mov dword [ebp - 0x21c], ecx
jmp 0x4169b3
mov edx, dword [ebp - 4]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x416a59
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x630]
push eax
call fcn.004956b0
add esp, 0xc
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x630], dx
lea eax, [ebp - 0x630]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004168a0
add esp, 8
mov edx, dword [ebp - 0x218]
add edx, 2
mov dword [ebp - 0x218], edx
xor eax, eax
mov word [ebp - 0x210], ax
cmp dword [ebp + 8], 0
je 0x416a80
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.004928dc
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa], ax
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x644], ecx
mov edx, dword [ebp - 0x644]
add edx, 2
mov dword [ebp - 0x648], edx
mov eax, dword [ebp - 0x644]
mov cx, word [eax]
mov word [ebp - 0x64a], cx
add dword [ebp - 0x644], 2
cmp word [ebp - 0x64a], 0
jne 0x416aa1
mov edx, dword [ebp - 0x644]
sub edx, dword [ebp - 0x648]
sar edx, 1
mov dword [ebp - 0x650], edx
mov eax, dword [ebp - 0x650]
mov dword [ebp - 0x214], eax
mov ecx, 0x104
sub ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x214]
lea ecx, [ebp + eax*2 - 0x210]
push ecx
call fcn.004928dc
add esp, 0xc
xor edx, edx
mov word [ebp - 0xa], dx
lea eax, [ebp - 0x210]
push eax
call fcn.0040f960
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x416b33
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret