Function at 0x409ac0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429cfe
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov ecx, esp
push 0x43a15c
call fcn.004158a0
lea ecx, [ebp - 0x494]
call fcn.004029c0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x478], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409b48
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
lea ecx, [ebp - 0x478]
call fcn.00415c00
push esi
lea edx, [ebp - 0x478]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x440]
call fcn.00415d50
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x464]
cmp edx, 0x10
jb 0x409bbb
mov ecx, dword [ebp - 0x478]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409bb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f85
push edx
push ecx
call fcn.00417475
add esp, 8
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0xf
mov byte [ebp - 0x478], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x480]
cmp edx, 0x10
jb 0x409c14
mov ecx, dword [ebp - 0x494]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409c0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f85
push edx
push ecx
call fcn.00417475
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x484], 0
mov ecx, esp
mov dword [ebp - 0x480], 0xf
mov byte [ebp - 0x494], 0
push 0x439d54
call fcn.004158a0
lea ecx, [ebp - 0x4c4]
call fcn.004029c0
mov esi, eax
push 0x434efc
lea edx, [ebp - 0x440]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4ac]
call fcn.004160d0
add esp, 0x1c
push esi
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x428]
call fcn.00415d50
add esp, 4
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x498]
cmp edx, 0x10
jb 0x409cbb
mov ecx, dword [ebp - 0x4ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409cb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f8a
push edx
push ecx
call fcn.00417475
add esp, 8
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x498], 0xf
mov byte [ebp - 0x4ac], 0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x4b0]
cmp edx, 0x10
jb 0x409d14
mov ecx, dword [ebp - 0x4c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409d0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f8a
push edx
push ecx
call fcn.00417475
add esp, 8
push 0x104
lea eax, [ebp - 0x118]
mov dword [ebp - 0x4b4], 0
push eax
push 0
mov dword [ebp - 0x4b0], 0xf
mov byte [ebp - 0x4c4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x458], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409d67
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x458]
call fcn.00415c00
lea edx, [ebp - 0x458]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x428]
call fcn.00416220
test al, al
jne 0x409e87
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
push 0x434ef0
cmovae eax, dword [ebp - 0x428]
push eax
call fcn.0041a9b4
add esp, 8
test eax, eax
je 0x409dec
push eax
call fcn.0041aa42
add esp, 4
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 0x10
cmovae eax, dword [ebp - 0x428]
push eax
call fcn.0041accf
add esp, 4
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
push 0x434ef0
cmovae eax, dword [ebp - 0x428]
push eax
call fcn.0041a9b4
add esp, 8
test eax, eax
je 0x409e20
push eax
call fcn.0041aa42
add esp, 4
jmp 0x40a033
cmp dword [ebp - 0x42c], 0x10
lea eax, [ebp - 0x440]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmovae eax, dword [ebp - 0x440]
push eax
call esi
cmp eax, 0xffffffff
je 0x409e46
test al, 0x10
jne 0x409e63
cmp dword [ebp - 0x42c], 0x10
lea eax, [ebp - 0x440]
push 0
cmovae eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp - 0x42c], 0x10
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
call esi
cmp eax, 0xffffffff
je 0x409e87
test al, 0x10
jne 0x409f8f
mov edx, dword [ebp - 0x444]
cmp edx, 0x10
jb 0x409ec1
mov ecx, dword [ebp - 0x458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409eb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a03a
push edx
push ecx
call fcn.00417475
add esp, 8
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
cmp edx, 0x10
jb 0x409f16
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409f0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a03a
push edx
push ecx
call fcn.00417475
add esp, 8
mov edx, dword [ebp - 0x42c]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
cmp edx, 0x10
jb 0x409f6b
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409f61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a03a
push edx
push ecx
call fcn.00417475
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416e02
mov esp, ebp
pop ebp
ret
call fcn.0041c0c8
call fcn.0041c0c8
sub esp, 0x18
lea ecx, [ebp - 0x428]
mov edx, esp
mov dword [ebp - 0x45c], esp
call fcn.00415780
push eax
mov ecx, edx
call fcn.00415860
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x458]
mov edx, esp
call fcn.00415780
push eax
mov ecx, edx
call fcn.00415860
mov byte [ebp - 4], 0xa
call fcn.00408d20
add esp, 0x30
lea ecx, [ebp - 0x428]
call fcn.00404e00
test al, al
je 0x40a033
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x460], esp
push 0x43436b
call fcn.00415860
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x428]
mov dword [ebp - 0x45c], esp
mov ecx, esp
push eax
call fcn.004158a0
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
push str.0123456789
call fcn.00415860
mov byte [ebp - 4], 0xa
call fcn.00403790
add esp, 0x48
push 0
call fcn.0041a88f
call fcn.0041c0c8
int3