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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x43600c]
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.00404400
cmp eax, 0x11
je 0x40901e
cmp eax, 0x10
je 0x40901e
cmp eax, 2
je 0x40901e
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 0x408ee0
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.00413e00
sub esp, 0x18
mov ecx, esp
push 0x43718c
call fcn.00413aa0
lea ecx, [ebp - 0x188]
call fcn.00402bc0
push eax
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x170]
call fcn.00413f50
add esp, 0x1c
lea ecx, [ebp - 0x140]
push eax
call fcn.004139e0
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x408f71
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408f67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
push edx
push ecx
call fcn.004153be
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 0x408fc6
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408fbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
push edx
push ecx
call fcn.004153be
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 0x409103
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4090f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
jmp 0x4090f9
sub esp, 0x18
mov ecx, esp
push 0x43718c
call fcn.00413aa0
lea ecx, [ebp - 0x188]
call fcn.00402bc0
add esp, 0x18
push eax
push ecx
lea ecx, [ebp - 0x158]
call fcn.004054d0
add esp, 4
lea ecx, [ebp - 0x170]
mov edx, eax
call fcn.00413f50
add esp, 4
lea ecx, [ebp - 0x140]
push eax
call fcn.004139e0
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x4090a1
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409097
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
push edx
push ecx
call fcn.004153be
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 0x408fc6
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408fbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
jmp 0x408fbc
push edx
push ecx
call fcn.004153be
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x436d54
call fcn.00413aa0
lea ecx, [ebp - 0x188]
call fcn.00402bc0
add esp, 0x18
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x158]
push eax
push 0x4339f4
call fcn.004141d0
add esp, 4
lea ecx, [ebp - 0x170]
mov edx, eax
call fcn.00413f50
add esp, 4
lea ecx, [ebp - 0x128]
push eax
call fcn.004139e0
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x409190
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409186
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
push edx
push ecx
call fcn.004153be
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 0x4091e5
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4091db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
push edx
push ecx
call fcn.004153be
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 0x40923a
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409230
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
push edx
push ecx
call fcn.004153be
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 0x409272
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.00413e00
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x128]
call fcn.004142d0
mov edx, dword [ebp - 0x144]
mov bl, al
cmp edx, 0x10
jb 0x4092db
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4092d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
push edx
push ecx
call fcn.004153be
add esp, 8
test bl, bl
je 0x40937e
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x409319
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40930f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
push edx
push ecx
call fcn.004153be
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 0x40936a
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409360
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
push edx
push ecx
call fcn.004153be
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00414d4c
mov esp, ebp
pop ebp
ret
call fcn.004199f4
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
push 0x4339e8
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.0041768c
add esp, 8
test eax, eax
je 0x4093b2
push eax
call fcn.0041771a
add esp, 4
jmp 0x40944d
lea ecx, [ebp - 0x140]
call fcn.00404b90
test al, al
jne 0x4093d5
push 0
lea ecx, [ebp - 0x140]
call fcn.004139d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x140]
call fcn.00404b90
test al, al
je 0x409407
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413aa0
sub esp, 0x18
mov ecx, esp
call fcn.00405610
call fcn.00408310
add esp, 0x30
lea ecx, [ebp - 0x128]
call fcn.00404b60
test al, al
je 0x40944d
sub esp, 0x18
mov ecx, esp
push 0x432e4b
call fcn.00413a60
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413aa0
sub esp, 0x18
mov ecx, esp
push str.0123456789
call fcn.00413a60
call fcn.00403800
add esp, 0x48
push 0
call fcn.004175bf
int3