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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.00404220
cmp eax, 0x11
je 0x408d3e
cmp eax, 0x10
je 0x408d3e
cmp eax, 2
je 0x408d3e
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
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408c00
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.00413e60
sub esp, 0x18
mov ecx, esp
push 0x432174
call fcn.00413b00
lea ecx, [ebp - 0x188]
call fcn.00402ac0
push eax
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x170]
call fcn.00413fb0
add esp, 0x1c
lea ecx, [ebp - 0x140]
push eax
call fcn.00413a40
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x408c91
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408c87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409099
push edx
push ecx
call fcn.0041541e
add esp, 8
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xf
mov byte [ebp - 0x170], 0
cmp edx, 0x10
jb 0x408ce6
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408cdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409099
push edx
push ecx
call fcn.0041541e
add esp, 8
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
cmp edx, 0x10
jb 0x408e23
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408e19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409099
jmp 0x408e19
sub esp, 0x18
mov ecx, esp
push 0x432174
call fcn.00413b00
lea ecx, [ebp - 0x188]
call fcn.00402ac0
add esp, 0x18
push eax
push ecx
lea ecx, [ebp - 0x158]
call fcn.00405270
add esp, 4
lea ecx, [ebp - 0x170]
mov edx, eax
call fcn.00413fb0
add esp, 4
lea ecx, [ebp - 0x140]
push eax
call fcn.00413a40
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x408dc1
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408db7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409099
push edx
push ecx
call fcn.0041541e
add esp, 8
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xf
mov byte [ebp - 0x170], 0
cmp edx, 0x10
jb 0x408ce6
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408cdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409099
jmp 0x408cdc
push edx
push ecx
call fcn.0041541e
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x431d3c
call fcn.00413b00
lea ecx, [ebp - 0x188]
call fcn.00402ac0
add esp, 0x18
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x158]
push eax
push 0x42eee0
call fcn.00414230
add esp, 4
lea ecx, [ebp - 0x170]
mov edx, eax
call fcn.00413fb0
add esp, 4
lea ecx, [ebp - 0x128]
push eax
call fcn.00413a40
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x408eb0
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408ea6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409099
push edx
push ecx
call fcn.0041541e
add esp, 8
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xf
mov byte [ebp - 0x170], 0
cmp edx, 0x10
jb 0x408f05
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408efb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409099
push edx
push ecx
call fcn.0041541e
add esp, 8
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
cmp edx, 0x10
jb 0x408f5a
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408f50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409099
push edx
push ecx
call fcn.0041541e
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 0x408f92
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.00413e60
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x128]
call fcn.00414330
mov edx, dword [ebp - 0x144]
mov bl, al
cmp edx, 0x10
jb 0x408ffb
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408ff1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409099
push edx
push ecx
call fcn.0041541e
add esp, 8
test bl, bl
je 0x40909e
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x409039
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40902f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409099
push edx
push ecx
call fcn.0041541e
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 0x40908a
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409080
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409099
push edx
push ecx
call fcn.0041541e
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00414dac
mov esp, ebp
pop ebp
ret
call fcn.0041886c
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
push 0x42eed4
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.004176fc
add esp, 8
test eax, eax
je 0x4090d2
push eax
call fcn.0041778a
add esp, 4
jmp 0x40916d
lea ecx, [ebp - 0x140]
call fcn.00404930
test al, al
jne 0x4090f5
push 0
lea ecx, [ebp - 0x140]
call fcn.00413a30
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x140]
call fcn.00404930
test al, al
je 0x409127
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
mov ecx, esp
call fcn.004053b0
call fcn.00408030
add esp, 0x30
lea ecx, [ebp - 0x128]
call fcn.00404900
test al, al
je 0x40916d
sub esp, 0x18
mov ecx, esp
push 0x42e35b
call fcn.00413ac0
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
mov ecx, esp
push str.0123456789
call fcn.00413ac0
call fcn.00403620
add esp, 0x48
push 0
call fcn.0041762f
int3