Function at 0x412840
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x412958
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.00500a34
add esp, 0xc
lea edx, [ebp - 0x414]
mov dword [ebp - 0x628], edx
mov eax, dword [ebp - 0x628]
add eax, 2
mov dword [ebp - 0x654], eax
mov ecx, dword [ebp - 0x628]
mov dx, word [ecx]
mov word [ebp - 0x632], dx
add dword [ebp - 0x628], 2
cmp word [ebp - 0x632], 0
jne 0x412890
mov eax, dword [ebp - 0x628]
sub eax, dword [ebp - 0x654]
sar eax, 1
mov dword [ebp - 0x658], eax
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x630], ecx
cmp dword [ebp - 0x630], 0
jbe 0x412933
mov edx, dword [ebp - 0x630]
movzx eax, word [ebp + edx*2 - 0x416]
cmp eax, 0x2f
je 0x412900
mov ecx, dword [ebp - 0x630]
movzx edx, word [ebp + ecx*2 - 0x416]
cmp edx, 0x5c
jne 0x412933
mov eax, dword [ebp - 0x630]
lea ecx, [eax + eax - 2]
mov dword [ebp - 0x638], ecx
cmp dword [ebp - 0x638], 0x208
jae 0x41291e
jmp 0x412923
call fcn.004723de
xor edx, edx
mov eax, dword [ebp - 0x638]
mov word [ebp + eax - 0x414], dx
lea ecx, [ebp - 0x414]
push ecx
call fcn.0040af30
add esp, 4
movzx edx, al
test edx, edx
jne 0x412958
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
jne 0x412967
jmp 0x412bb0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x624], eax
mov ecx, dword [ebp - 0x624]
mov dword [ebp - 0x620], ecx
mov edx, dword [ebp - 0x620]
movzx eax, word [edx]
test eax, eax
je 0x4129c2
mov ecx, dword [ebp - 0x620]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0x4129a5
mov eax, dword [ebp - 0x620]
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x4129b1
mov edx, dword [ebp - 0x620]
mov dword [ebp - 0x624], edx
mov eax, dword [ebp - 0x620]
add eax, 2
mov dword [ebp - 0x620], eax
jmp 0x41297c
mov ecx, dword [ebp - 0x624]
mov dword [ebp - 0x640], ecx
mov edx, dword [ebp - 0x624]
cmp edx, dword [ebp + 0xc]
je 0x412a52
mov eax, dword [ebp - 0x624]
sub eax, dword [ebp + 0xc]
sar eax, 1
shl eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x61c]
push edx
call fcn.004f3650
add esp, 0xc
mov eax, dword [ebp - 0x624]
sub eax, dword [ebp + 0xc]
sar eax, 1
shl eax, 1
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0x208
jae 0x412a1b
jmp 0x412a20
call fcn.004723de
xor ecx, ecx
mov edx, dword [ebp - 0x63c]
mov word [ebp + edx - 0x61c], cx
lea eax, [ebp - 0x61c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412840
add esp, 8
mov edx, dword [ebp - 0x640]
add edx, 2
mov dword [ebp - 0x640], edx
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x644], ecx
cmp dword [ebp - 0x644], 0x208
jae 0x412a6e
jmp 0x412a73
call fcn.004723de
xor edx, edx
mov eax, dword [ebp - 0x644]
mov word [ebp + eax - 0x20c], dx
cmp dword [ebp + 8], 0
je 0x412aa1
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.00500a34
add esp, 0xc
mov eax, 2
imul ecx, eax, 0x103
mov dword [ebp - 0x648], ecx
cmp dword [ebp - 0x648], 0x208
jae 0x412ac0
jmp 0x412ac5
call fcn.004723de
xor edx, edx
mov eax, dword [ebp - 0x648]
mov word [ebp + eax - 0x20c], dx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x62c], ecx
mov edx, dword [ebp - 0x62c]
add edx, 2
mov dword [ebp - 0x65c], edx
mov eax, dword [ebp - 0x62c]
mov cx, word [eax]
mov word [ebp - 0x634], cx
add dword [ebp - 0x62c], 2
cmp word [ebp - 0x634], 0
jne 0x412af0
mov edx, dword [ebp - 0x62c]
sub edx, dword [ebp - 0x65c]
sar edx, 1
mov dword [ebp - 0x660], edx
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x64c], eax
mov ecx, 0x104
sub ecx, dword [ebp - 0x64c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x64c]
lea ecx, [ebp + eax*2 - 0x20c]
push ecx
call fcn.00500a34
add esp, 0xc
mov edx, 2
imul eax, edx, 0x103
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0x208
jae 0x412b76
jmp 0x412b7b
call fcn.004723de
xor ecx, ecx
mov edx, dword [ebp - 0x650]
mov word [ebp + edx - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040af30
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x412bb0
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret