Function at 0x40c070
Capabilities:
Create directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44907d
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x461014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x148]
call fcn.0040b4c0
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push 0x461db8
call fcn.00417360
lea ecx, [ebp - 0x1a0]
call fcn.00405190
mov esi, eax
push 0x457d1c
lea edx, [ebp - 0x148]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.00417fe0
add esp, 0x1c
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x164]
call fcn.00417b80
add esp, 4
lea ecx, [ebp - 0x130]
push eax
call fcn.004172a0
mov edx, dword [ebp - 0x150]
cmp edx, 0x10
jb 0x40c163
mov ecx, dword [ebp - 0x164]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c159
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c3c8
push edx
push ecx
call fcn.0041cfc8
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0xf
mov byte [ebp - 0x164], 0
cmp edx, 0x10
jb 0x40c1bc
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c1b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c3c8
push edx
push ecx
call fcn.0041cfc8
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0xf
mov byte [ebp - 0x188], 0
cmp edx, 0x10
jb 0x40c215
mov ecx, dword [ebp - 0x1a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c20b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c3c8
push edx
push ecx
call fcn.0041cfc8
add esp, 8
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x164], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c250
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x164]
call fcn.00417a20
cmp dword [ebp - 0x150], 0x10
lea eax, [ebp - 0x164]
mov edi, dword [ebp - 0x164]
lea ecx, [ebp - 0x130]
mov ebx, dword [ebp - 0x11c]
cmovae eax, edi
push dword [ebp - 0x154]
mov esi, dword [ebp - 0x130]
cmp ebx, 0x10
mov edx, dword [ebp - 0x120]
cmovae ecx, esi
push eax
call fcn.00418dd0
mov byte [ebp - 0x149], al
add esp, 8
mov eax, dword [ebp - 0x150]
cmp eax, 0x10
jb 0x40c2f7
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40c2e1
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c49e
push ecx
push edi
call fcn.0041cfc8
mov ebx, dword [ebp - 0x11c]
add esp, 8
mov esi, dword [ebp - 0x130]
cmp byte [ebp - 0x149], 0
jne 0x40c327
cmp ebx, 0x10
lea eax, [ebp - 0x130]
push 0x457d10
cmovae eax, esi
push eax
call fcn.00436056
add esp, 8
test eax, eax
je 0x40c429
jmp 0x40c3cd
cmp ebx, 0x10
jb 0x40c357
lea ecx, [ebx + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40c34d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c49e
push ecx
push esi
call fcn.0041cfc8
add esp, 8
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp edx, 0x10
jb 0x40c3ac
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c3a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c49e
push edx
push ecx
call fcn.0041cfc8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c951
mov esp, ebp
pop ebp
ret
call fcn.00436597
push eax
call fcn.004360e4
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x168], esp
push 0x45714b
call fcn.00417320
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x130]
mov dword [ebp - 0x16c], esp
mov ecx, esp
push eax
call fcn.00417360
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push str.0123456789
call fcn.00417320
mov byte [ebp - 4], 1
call fcn.004060e0
add esp, 0x48
push 0
call fcn.00435f89
lea ecx, [ebp - 0x148]
call fcn.00407540
test al, al
jne 0x40c44c
push 0
lea ecx, [ebp - 0x148]
call fcn.004171e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x148]
call fcn.00407540
test al, al
je 0x40c48c
sub esp, 0x18
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x170], esp
push eax
call fcn.00417360
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
call fcn.00407f40
mov byte [ebp - 4], 1
call fcn.0040b330
add esp, 0x30
lea ecx, [ebp - 0x130]
call fcn.00407510
push 0
call fcn.00435f89
call fcn.00436597
int3