Function at 0x408560
Capabilities:
Copy file
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.00404210
cmp eax, 0x11
je 0x4086eb
cmp eax, 0x10
je 0x4086eb
cmp eax, 2
je 0x4086eb
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 0x4085e0
sub ecx, edx
lea eax, [ebp - 0x180]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00412fd0
sub esp, 0x18
mov ecx, esp
push 0x43617c
call fcn.00412c60
lea ecx, [ebp - 0x78]
call fcn.00402b70
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.00413110
add esp, 0x1c
lea ecx, [ebp - 0x60]
push eax
call fcn.00412ac0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x40865c
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408652
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b7
push edx
push ecx
call fcn.00414180
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 0x4086a2
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408698
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b7
push edx
push ecx
call fcn.00414180
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 0x4087af
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4087a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b7
jmp 0x4087a5
sub esp, 0x18
mov ecx, esp
push 0x43617c
call fcn.00412c60
lea ecx, [ebp - 0x78]
call fcn.00402b70
add esp, 0x18
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00405140
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.00413110
add esp, 4
lea ecx, [ebp - 0x60]
push eax
call fcn.00412ac0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x40875c
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408752
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b7
push edx
push ecx
call fcn.00414180
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 0x4086a2
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408698
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b7
jmp 0x408698
push edx
push ecx
call fcn.00414180
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x435d44
call fcn.00412c60
lea ecx, [ebp - 0x78]
call fcn.00402b70
add esp, 0x18
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x18]
push eax
push 0x432a14
call fcn.00413440
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.00413110
add esp, 4
lea ecx, [ebp - 0x48]
push eax
call fcn.00412ac0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x408827
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40881d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b7
push edx
push ecx
call fcn.00414180
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 0x40886d
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408863
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b7
push edx
push ecx
call fcn.00414180
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 0x4088b3
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4088a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b7
push edx
push ecx
call fcn.00414180
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 0x4088e2
sub ecx, edx
lea eax, [ebp - 0x180]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00412fd0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.00413540
mov edx, dword [ebp - 4]
mov bl, al
cmp edx, 0x10
jb 0x40893c
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408932
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b7
push edx
push ecx
call fcn.00414180
add esp, 8
test bl, bl
je 0x4089bc
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x408970
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408966
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b7
push edx
push ecx
call fcn.00414180
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 0x4089b2
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4089a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b7
push edx
push ecx
call fcn.00414180
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004188f4
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push 0x432a08
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.0041658c
add esp, 8
test eax, eax
je 0x4089e7
push eax
call fcn.0041661a
add esp, 4
jmp 0x408a79
lea ecx, [ebp - 0x60]
call fcn.004048e0
test al, al
jne 0x408a04
push 0
lea ecx, [ebp - 0x60]
call fcn.00412a60
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x60]
call fcn.004048e0
test al, al
je 0x408a39
push 1
lea ecx, [ebp - 0x48]
call fcn.00412a60
push eax
lea ecx, [ebp - 0x78]
call fcn.00405240
mov ecx, eax
call fcn.00412a60
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x78]
call fcn.00412a70
lea ecx, [ebp - 0x48]
call fcn.004048b0
test al, al
je 0x408a79
sub esp, 0x18
mov ecx, esp
push 0x431e4b
call fcn.00412c20
sub esp, 0x18
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
mov ecx, esp
push str.0123456789
call fcn.00412c20
call fcn.00403680
add esp, 0x48
push 0
call fcn.004164bf
int3