Function at 0x408c60
Capabilities:
Create directory
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x158], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408cb0
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.00413cf0
sub esp, 0x18
mov ecx, esp
push 0x432174
call fcn.00413990
lea ecx, [ebp - 0x170]
call fcn.004029f0
push eax
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x140]
call fcn.00413e40
mov edx, dword [ebp - 0x144]
add esp, 0x1c
cmp edx, 0x10
jb 0x408d35
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408d2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408fa7
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
cmp edx, 0x10
jb 0x408d8a
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408d80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408fa7
push edx
push ecx
call fcn.0041535e
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x431d3c
call fcn.00413990
lea ecx, [ebp - 0x170]
call fcn.004029f0
add esp, 0x18
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x158]
push eax
push 0x42eeec
call fcn.00414170
add esp, 4
lea ecx, [ebp - 0x128]
mov edx, eax
call fcn.00413e40
mov edx, dword [ebp - 0x144]
add esp, 4
cmp edx, 0x10
jb 0x408e0b
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408e01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408fac
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
cmp edx, 0x10
jb 0x408e60
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408e56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408fac
push edx
push ecx
call fcn.0041535e
add esp, 8
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x158], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408e98
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.00413cf0
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x128]
call fcn.00414270
mov edx, dword [ebp - 0x144]
mov bl, al
cmp edx, 0x10
jb 0x408f01
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408ef7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409087
push edx
push ecx
call fcn.0041535e
add esp, 8
test bl, bl
je 0x408fb1
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x408f43
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408f39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409087
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 0x10
jb 0x408f98
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408f8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409087
push edx
push ecx
call fcn.0041535e
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00414cec
mov esp, ebp
pop ebp
ret
call fcn.004187ac
call fcn.004187ac
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
push 0x42eee0
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.0041763c
add esp, 8
test eax, eax
je 0x408fe5
push eax
call fcn.004176ca
add esp, 4
jmp 0x409080
lea ecx, [ebp - 0x140]
call fcn.00404a80
test al, al
jne 0x409008
push 0
lea ecx, [ebp - 0x140]
call fcn.004138c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x140]
call fcn.00404a80
test al, al
je 0x40903a
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
mov ecx, esp
call fcn.00405500
call fcn.00408130
add esp, 0x30
lea ecx, [ebp - 0x128]
call fcn.00404a50
test al, al
je 0x409080
sub esp, 0x18
mov ecx, esp
push 0x42e35b
call fcn.00413950
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
mov ecx, esp
push str.0123456789
call fcn.00413950
call fcn.00403550
add esp, 0x48
push 0
call fcn.0041756f
call fcn.004187ac
int3