Function at 0x408bd0
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 0x408c20
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 0x43212c
call fcn.00413990
lea ecx, [ebp - 0x170]
call fcn.00402910
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 0x408ca5
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408c9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408f17
push edx
push ecx
call fcn.004152ae
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 0x408cfa
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408cf0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408f17
push edx
push ecx
call fcn.004152ae
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x431d24
call fcn.00413990
lea ecx, [ebp - 0x170]
call fcn.00402910
add esp, 0x18
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x158]
push eax
push 0x42eedc
call fcn.004140c0
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 0x408d7b
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408d71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408f1c
push edx
push ecx
call fcn.004152ae
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 0x408dd0
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408dc6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408f1c
push edx
push ecx
call fcn.004152ae
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 0x408e08
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.004141c0
mov edx, dword [ebp - 0x144]
mov bl, al
cmp edx, 0x10
jb 0x408e71
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408e67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ff7
push edx
push ecx
call fcn.004152ae
add esp, 8
test bl, bl
je 0x408f21
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x408eb3
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408ea9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ff7
push edx
push ecx
call fcn.004152ae
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 0x408f08
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408efe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ff7
push edx
push ecx
call fcn.004152ae
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00414c3c
mov esp, ebp
pop ebp
ret
call fcn.004186fc
call fcn.004186fc
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
push 0x42eed0
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.0041758c
add esp, 8
test eax, eax
je 0x408f55
push eax
call fcn.0041761a
add esp, 4
jmp 0x408ff0
lea ecx, [ebp - 0x140]
call fcn.004049a0
test al, al
jne 0x408f78
push 0
lea ecx, [ebp - 0x140]
call fcn.004138c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x140]
call fcn.004049a0
test al, al
je 0x408faa
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
mov ecx, esp
call fcn.00405420
call fcn.004080a0
add esp, 0x30
lea ecx, [ebp - 0x128]
call fcn.00404970
test al, al
je 0x408ff0
sub esp, 0x18
mov ecx, esp
push 0x42e34b
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.00403470
add esp, 0x48
push 0
call fcn.004174bf
call fcn.004186fc
int3