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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.00404ac0
cmp eax, 0x11
je 0x409b1b
cmp eax, 0x10
je 0x409b1b
cmp eax, 2
je 0x409b1b
lea eax, [ebp - 0x180]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x180]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409a10
sub ecx, edx
lea eax, [ebp - 0x180]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00414b30
sub esp, 0x18
mov ecx, esp
push 0x4401c0
call fcn.004147b0
lea ecx, [ebp - 0x78]
call fcn.00402fb0
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.00414c70
add esp, 0x1c
lea ecx, [ebp - 0x60]
push eax
call fcn.00414610
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x409a8c
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409a82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de7
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x409ad2
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409ac8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de7
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x64]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x409bdf
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409bd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de7
jmp 0x409bd5
sub esp, 0x18
mov ecx, esp
push 0x4401c0
call fcn.004147b0
lea ecx, [ebp - 0x78]
call fcn.00402fb0
add esp, 0x18
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004059f0
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.00414c70
add esp, 4
lea ecx, [ebp - 0x60]
push eax
call fcn.00414610
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x409b8c
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409b82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de7
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x409ad2
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409ac8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de7
jmp 0x409ac8
push edx
push ecx
call fcn.00415fcc
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x43fd88
call fcn.004147b0
lea ecx, [ebp - 0x78]
call fcn.00402fb0
add esp, 0x18
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x18]
push eax
push 0x43c118
call fcn.00414f60
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.00414c70
add esp, 4
lea ecx, [ebp - 0x48]
push eax
call fcn.00414610
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x409c57
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409c4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de7
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x409c9d
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409c93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de7
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x64]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x409ce3
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409cd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de7
push edx
push ecx
call fcn.00415fcc
add esp, 8
push 0x104
lea eax, [ebp - 0x180]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x180]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409d12
sub ecx, edx
lea eax, [ebp - 0x180]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00414b30
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.00414ef0
mov edx, dword [ebp - 4]
mov bl, al
cmp edx, 0x10
jb 0x409d6c
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409d62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de7
push edx
push ecx
call fcn.00415fcc
add esp, 8
test bl, bl
je 0x409dec
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x409da0
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409d96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de7
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x409de2
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409dd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de7
push edx
push ecx
call fcn.00415fcc
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041bb2d
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push 0x43c10c
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.004197f6
add esp, 8
test eax, eax
je 0x409e17
push eax
call fcn.00419884
add esp, 4
jmp 0x409ea0
lea ecx, [ebp - 0x60]
call fcn.00405190
test al, al
jne 0x409e34
push 0
lea ecx, [ebp - 0x60]
call fcn.00414430
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x60]
call fcn.00405190
test al, al
je 0x409e60
sub esp, 0x18
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
mov ecx, esp
call fcn.00405af0
call fcn.00408f40
add esp, 0x30
lea ecx, [ebp - 0x48]
call fcn.00405160
test al, al
je 0x409ea0
sub esp, 0x18
mov ecx, esp
push 0x43b4fb
call fcn.00414770
sub esp, 0x18
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
mov ecx, esp
push str.0123456789
call fcn.00414770
call fcn.00404130
add esp, 0x48
push 0
call fcn.00419729
int3