Function at 0x406d45
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
push 8
call fcn.0041a90a
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x42f484
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x406d9c
push eax
mov ebx, eax
call fcn.004017f9
inc eax
push eax
call fcn.0041a90a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406dad
push ebx
call fcn.0041a904
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push 1
mov eax, 0x42f48e
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, 0x42f5c4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00407059
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x406e0b
push ebx
call fcn.0041a904
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x406e1b
push ebx
call fcn.0041a904
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406e2f
push ebx
call fcn.0041a904
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
call fcn.0040315a
mov dword [ebp - 0x14], eax
push 0x42f48e
push dword [ebp - 0x14]
call fcn.004029ef
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406e72
push ebx
call fcn.0041a904
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x406ec7
lea eax, [ebp - 4]
push eax
call fcn.0040325d
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fsub qword [0x42f490]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00402dec
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040389e
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406ec3
push ebx
call fcn.0041a904
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push 1
mov eax, 0x42f48e
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040774a
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406efe
push ebx
call fcn.0041a904
add esp, 4
mov ebx, dword [ebp - 8]
call fcn.0040328e
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x406fdb
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
push dword [ebx]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.00401864
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x406f75
push 6
call fcn.0041a910
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406f85
push ebx
call fcn.0041a904
add esp, 4
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
push 0x42f48e
mov ebx, dword [ebp - 0x14]
push dword [ebx]
push dword [ebp - 0x10]
mov ecx, 3
call fcn.00401864
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x406fcf
push ebx
call fcn.0041a904
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
pop eax
pop ebx
pop ecx
jmp 0x406f0f
add esp, 0xc
lea eax, [ebp - 4]
push eax
call fcn.00407cd4
jmp 0x406fec
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406ffd
push ebx
call fcn.0041a904
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40701b
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x407017
imul eax, dword [ebx]
jmp 0x40700c
mov ecx, eax
test ecx, ecx
je 0x40703a
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x407033
push ebx
push eax
call fcn.0041a904
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x407021
call fcn.0041a904
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x407052
push ebx
call fcn.0041a904
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4