Function at 0x405680
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov dword [esp + 0x14], eax
xor esi, esi
push edi
xor eax, eax
push esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], esi
mov word [esp + 0x40], ax
call fcn.0046ecbc
add esp, 4
push eax
call fcn.00470965
add esp, 4
mov dword [esp + 0x10], esi
jmp 0x4056e2
xor esi, esi
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
xor ecx, ecx
push esi
mov word [esp + 0x28], cx
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], esi
call fcn.00402710
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ebx, [esp + 0x5c]
call fcn.0040c830
add esp, 4
push 0xffffffffffffffff
push esi
mov eax, ebx
push eax
lea ecx, [esp + 0x2c]
call fcn.00402600
cmp dword [esp + 0x6c], 8
jb 0x40573c
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0046d64b
add esp, 4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov eax, edx
cmp ecx, 8
jae 0x40574f
lea eax, [esp + 0x20]
mov edi, dword [esp + 0x30]
cmp ecx, 8
lea eax, [eax + edi*2]
mov ecx, edx
jae 0x405761
lea ecx, [esp + 0x20]
cmp eax, esi
jne 0x405769
xor eax, eax
jmp 0x40576d
sub eax, ecx
sar eax, 1
push 0x5f
mov edi, eax
lea esi, [esp + 0x24]
call fcn.00408120
call fcn.00470977
cdq
mov ecx, 0x7fff
idiv ecx
lea ebx, [esp + 0x58]
push edx
call fcn.0040c830
add esp, 4
push 0xffffffffffffffff
push 0
mov edx, ebx
push edx
mov ecx, esi
call fcn.00402600
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x4057ba
mov eax, dword [esp + 0x58]
push eax
call fcn.0046d64b
add esp, 4
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x5c]
push edx
call fcn.00401a30
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.00402710
cmp dword [esp + 0x6c], esi
jb 0x4057ee
mov eax, dword [esp + 0x58]
push eax
call fcn.0046d64b
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], esi
jae 0x4057fc
lea eax, [esp + 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405855
cmp dword [esp + 0x34], esi
jb 0x40581c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0046d64b
add esp, 4
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x32
jl 0x4056e0
cmp dword [esp + 0x50], esi
jb 0x405841
mov eax, dword [esp + 0x3c]
push eax
call fcn.0046d64b
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x44]
push edx
call fcn.00402710
cmp dword [esp + 0x34], esi
jb 0x40587a
mov eax, dword [esp + 0x20]
push eax
call fcn.0046d64b
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], cx
cmp dword [esp + 0x50], esi
jb 0x4058a4
mov edx, dword [esp + 0x3c]
push edx
call fcn.0046d64b
add esp, 4
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret