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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x44b018]
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.00404d40
cmp eax, 0x11
je 0x409c5e
cmp eax, 0x10
je 0x409c5e
cmp eax, 2
je 0x409c5e
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 0x409b20
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.00416360
sub esp, 0x18
mov ecx, esp
push 0x44c1cc
call fcn.004157d0
lea ecx, [ebp - 0x188]
call fcn.00403500
push eax
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x170]
call fcn.00416970
add esp, 0x1c
lea ecx, [ebp - 0x140]
push eax
call fcn.00415710
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x409bb1
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409ba7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb9
push edx
push ecx
call fcn.00418e03
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 0x409c06
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409bfc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb9
push edx
push ecx
call fcn.00418e03
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 0x409d43
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409d39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb9
jmp 0x409d39
sub esp, 0x18
mov ecx, esp
push 0x44c1cc
call fcn.004157d0
lea ecx, [ebp - 0x188]
call fcn.00403500
add esp, 0x18
push eax
push ecx
lea ecx, [ebp - 0x158]
call fcn.00405e10
add esp, 4
lea ecx, [ebp - 0x170]
mov edx, eax
call fcn.00416970
add esp, 4
lea ecx, [ebp - 0x140]
push eax
call fcn.00415710
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x409ce1
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409cd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb9
push edx
push ecx
call fcn.00418e03
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 0x409c06
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409bfc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb9
jmp 0x409bfc
push edx
push ecx
call fcn.00418e03
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x44bd94
call fcn.004157d0
lea ecx, [ebp - 0x188]
call fcn.00403500
add esp, 0x18
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x158]
push eax
push 0x44822c
call fcn.00416bf0
add esp, 4
lea ecx, [ebp - 0x170]
mov edx, eax
call fcn.00416970
add esp, 4
lea ecx, [ebp - 0x128]
push eax
call fcn.00415710
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x409dd0
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409dc6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb9
push edx
push ecx
call fcn.00418e03
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 0x409e25
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409e1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb9
push edx
push ecx
call fcn.00418e03
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 0x409e7a
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409e70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb9
push edx
push ecx
call fcn.00418e03
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 0x409eb2
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.00416360
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x128]
call fcn.00416cb0
mov edx, dword [ebp - 0x144]
mov bl, al
cmp edx, 0x10
jb 0x409f1b
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409f11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb9
push edx
push ecx
call fcn.00418e03
add esp, 8
test bl, bl
je 0x409fbe
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x409f59
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409f4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb9
push edx
push ecx
call fcn.00418e03
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 0x409faa
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409fa0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fb9
push edx
push ecx
call fcn.00418e03
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041878c
mov esp, ebp
pop ebp
ret
call fcn.0042140f
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
push 0x448220
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.0041d6d4
add esp, 8
test eax, eax
je 0x409ff2
push eax
call fcn.0041daaa
add esp, 4
jmp 0x40a08d
lea ecx, [ebp - 0x140]
call fcn.004054d0
test al, al
jne 0x40a015
push 0
lea ecx, [ebp - 0x140]
call fcn.00415690
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x140]
call fcn.004054d0
test al, al
je 0x40a047
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.004157d0
sub esp, 0x18
mov ecx, esp
call fcn.00405f50
call fcn.00408c20
add esp, 0x30
lea ecx, [ebp - 0x128]
call fcn.004054a0
test al, al
je 0x40a08d
sub esp, 0x18
mov ecx, esp
push 0x4475ef
call fcn.00415790
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.004157d0
sub esp, 0x18
mov ecx, esp
push str.0123456789
call fcn.00415790
call fcn.00404140
add esp, 0x48
push 0
call fcn.0041d4c9
int3