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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
cmp byte [0x449a1c], 1
push ebx
jne 0x40ad20
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.004058e0
cmp eax, 0x11
je 0x40aa53
cmp eax, 0x10
je 0x40aa53
cmp eax, 2
je 0x40aa53
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
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a948
sub ecx, edx
lea eax, [ebp - 0x180]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00414eb0
sub esp, 0x18
mov ecx, esp
push 0x4481c0
call fcn.00414750
lea ecx, [ebp - 0x78]
call fcn.004034e0
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.00415290
add esp, 0x1c
lea ecx, [ebp - 0x60]
push eax
call fcn.004145b0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x40a9c4
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a9ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad25
push edx
push ecx
call fcn.00417582
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 0x40aa0a
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad25
push edx
push ecx
call fcn.00417582
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 0x40ab17
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad25
jmp 0x40ab0d
sub esp, 0x18
mov ecx, esp
push 0x4481c0
call fcn.00414750
lea ecx, [ebp - 0x78]
call fcn.004034e0
add esp, 0x18
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00406810
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.00415290
add esp, 4
lea ecx, [ebp - 0x60]
push eax
call fcn.004145b0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x40aac4
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aaba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad25
push edx
push ecx
call fcn.00417582
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 0x40aa0a
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad25
jmp 0x40aa00
push edx
push ecx
call fcn.00417582
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x447d88
call fcn.00414750
lea ecx, [ebp - 0x78]
call fcn.004034e0
add esp, 0x18
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x18]
push eax
push 0x444238
call fcn.00415750
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.00415290
add esp, 4
lea ecx, [ebp - 0x48]
push eax
call fcn.004145b0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x40ab8f
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad25
push edx
push ecx
call fcn.00417582
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 0x40abd5
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40abcb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad25
push edx
push ecx
call fcn.00417582
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 0x40ac1b
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad25
push edx
push ecx
call fcn.00417582
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
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ac50
sub ecx, edx
lea eax, [ebp - 0x180]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00414eb0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.00415810
mov edx, dword [ebp - 4]
mov bl, al
cmp edx, 0x10
jb 0x40acaa
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aca0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad25
push edx
push ecx
call fcn.00417582
add esp, 8
test bl, bl
je 0x40ad2a
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x40acde
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40acd4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad25
push edx
push ecx
call fcn.00417582
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 0x40ad20
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ad16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad25
push edx
push ecx
call fcn.00417582
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041ea01
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push 0x44422c
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.0041bf26
add esp, 8
test eax, eax
je 0x40ad55
push eax
call fcn.0041bfb4
add esp, 4
jmp 0x40adde
lea ecx, [ebp - 0x60]
call fcn.00405fb0
test al, al
jne 0x40ad72
push 0
lea ecx, [ebp - 0x60]
call fcn.004143d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x60]
call fcn.00405fb0
test al, al
je 0x40ad9e
sub esp, 0x18
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
mov ecx, esp
call fcn.00406910
call fcn.00409e60
add esp, 0x30
lea ecx, [ebp - 0x48]
call fcn.00405f80
test al, al
je 0x40adde
sub esp, 0x18
mov ecx, esp
push 0x44358f
call fcn.00414710
sub esp, 0x18
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
mov ecx, esp
push str.0123456789
call fcn.00414710
call fcn.00404d40
add esp, 0x48
push 0
call fcn.0041be59
int3