Function at 0x450f80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x5e1040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x451051
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.0055b84c
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
call fcn.0055ef70
add esp, 4
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
jbe 0x45102c
mov eax, dword [ebp - 0x628]
movzx ecx, word [ebp + eax*2 - 0x416]
cmp ecx, 0x2f
je 0x450ff9
mov edx, dword [ebp - 0x628]
movzx eax, word [ebp + edx*2 - 0x416]
cmp eax, 0x5c
jne 0x45102c
mov ecx, dword [ebp - 0x628]
lea edx, [ecx + ecx - 2]
mov dword [ebp - 0x62c], edx
cmp dword [ebp - 0x62c], 0x208
jae 0x451017
jmp 0x45101c
call fcn.00422647
xor eax, eax
mov ecx, dword [ebp - 0x62c]
mov word [ebp + ecx - 0x414], ax
lea edx, [ebp - 0x414]
push edx
call fcn.00451270
add esp, 4
movzx eax, al
test eax, eax
jne 0x451051
push 0
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x451060
jmp 0x451262
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x624], ecx
mov edx, dword [ebp - 0x624]
mov dword [ebp - 0x620], edx
mov eax, dword [ebp - 0x620]
movzx ecx, word [eax]
test ecx, ecx
je 0x4510bb
mov edx, dword [ebp - 0x620]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x45109e
mov ecx, dword [ebp - 0x620]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x4510aa
mov eax, dword [ebp - 0x620]
mov dword [ebp - 0x624], eax
mov ecx, dword [ebp - 0x620]
add ecx, 2
mov dword [ebp - 0x620], ecx
jmp 0x451075
mov edx, dword [ebp - 0x624]
mov dword [ebp - 0x634], edx
mov eax, dword [ebp - 0x624]
cmp eax, dword [ebp + 0xc]
je 0x45114b
mov ecx, dword [ebp - 0x624]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x61c]
push eax
call fcn.00547de0
add esp, 0xc
mov ecx, dword [ebp - 0x624]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x630], ecx
cmp dword [ebp - 0x630], 0x208
jae 0x451114
jmp 0x451119
call fcn.00422647
xor edx, edx
mov eax, dword [ebp - 0x630]
mov word [ebp + eax - 0x61c], dx
lea ecx, [ebp - 0x61c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00450f80
add esp, 8
mov eax, dword [ebp - 0x634]
add eax, 2
mov dword [ebp - 0x634], eax
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x638], edx
cmp dword [ebp - 0x638], 0x208
jae 0x451167
jmp 0x45116c
call fcn.00422647
xor eax, eax
mov ecx, dword [ebp - 0x638]
mov word [ebp + ecx - 0x20c], ax
cmp dword [ebp + 8], 0
je 0x45119a
push 0x104
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.0055b84c
add esp, 0xc
mov ecx, 2
imul edx, ecx, 0x103
mov dword [ebp - 0x63c], edx
cmp dword [ebp - 0x63c], 0x208
jae 0x4511b9
jmp 0x4511be
call fcn.00422647
xor eax, eax
mov ecx, dword [ebp - 0x63c]
mov word [ebp + ecx - 0x20c], ax
lea edx, [ebp - 0x20c]
push edx
call fcn.0055ef70
add esp, 4
mov dword [ebp - 0x640], eax
mov eax, 0x104
sub eax, dword [ebp - 0x640]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x640]
lea eax, [ebp + edx*2 - 0x20c]
push eax
call fcn.0055b84c
add esp, 0xc
mov ecx, 2
imul edx, ecx, 0x103
mov dword [ebp - 0x644], edx
cmp dword [ebp - 0x644], 0x208
jae 0x451228
jmp 0x45122d
call fcn.00422647
xor eax, eax
mov ecx, dword [ebp - 0x644]
mov word [ebp + ecx - 0x20c], ax
lea edx, [ebp - 0x20c]
push edx
call fcn.00451270
add esp, 4
movzx eax, al
test eax, eax
jne 0x451262
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004224b5
mov esp, ebp
pop ebp
ret