Function at 0x4085c0
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.00404220
cmp eax, 0x11
je 0x40874b
cmp eax, 0x10
je 0x40874b
cmp eax, 2
je 0x40874b
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 0x408640
sub ecx, edx
lea eax, [ebp - 0x180]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004131b0
sub esp, 0x18
mov ecx, esp
push 0x43617c
call fcn.00412e40
lea ecx, [ebp - 0x78]
call fcn.00402b70
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.004132f0
add esp, 0x1c
lea ecx, [ebp - 0x60]
push eax
call fcn.00412ca0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4086bc
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4086b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a17
push edx
push ecx
call fcn.004142b0
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 0x408702
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4086f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a17
push edx
push ecx
call fcn.004142b0
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 0x40880f
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408805
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a17
jmp 0x408805
sub esp, 0x18
mov ecx, esp
push 0x43617c
call fcn.00412e40
lea ecx, [ebp - 0x78]
call fcn.00402b70
add esp, 0x18
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00405150
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.004132f0
add esp, 4
lea ecx, [ebp - 0x60]
push eax
call fcn.00412ca0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4087bc
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4087b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a17
push edx
push ecx
call fcn.004142b0
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 0x408702
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4086f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a17
jmp 0x4086f8
push edx
push ecx
call fcn.004142b0
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x435d44
call fcn.00412e40
lea ecx, [ebp - 0x78]
call fcn.00402b70
add esp, 0x18
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x18]
push eax
push 0x432a0c
call fcn.00413570
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.004132f0
add esp, 4
lea ecx, [ebp - 0x48]
push eax
call fcn.00412ca0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x408887
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40887d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a17
push edx
push ecx
call fcn.004142b0
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 0x4088cd
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4088c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a17
push edx
push ecx
call fcn.004142b0
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 0x408913
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408909
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a17
push edx
push ecx
call fcn.004142b0
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 0x408942
sub ecx, edx
lea eax, [ebp - 0x180]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004131b0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.00413670
mov edx, dword [ebp - 4]
mov bl, al
cmp edx, 0x10
jb 0x40899c
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408992
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a17
push edx
push ecx
call fcn.004142b0
add esp, 8
test bl, bl
je 0x408a1c
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x4089d0
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4089c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a17
push edx
push ecx
call fcn.004142b0
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 0x408a12
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408a08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a17
push edx
push ecx
call fcn.004142b0
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00418a24
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push 0x432a00
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.004166bc
add esp, 8
test eax, eax
je 0x408a47
push eax
call fcn.0041674a
add esp, 4
jmp 0x408ad9
lea ecx, [ebp - 0x60]
call fcn.004048f0
test al, al
jne 0x408a64
push 0
lea ecx, [ebp - 0x60]
call fcn.00412c40
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x60]
call fcn.004048f0
test al, al
je 0x408a99
push 1
lea ecx, [ebp - 0x48]
call fcn.00412c40
push eax
lea ecx, [ebp - 0x78]
call fcn.00405250
mov ecx, eax
call fcn.00412c40
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x78]
call fcn.00412c50
lea ecx, [ebp - 0x48]
call fcn.004048c0
test al, al
je 0x408ad9
sub esp, 0x18
mov ecx, esp
push 0x431e4b
call fcn.00412e00
sub esp, 0x18
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
mov ecx, esp
push str.0123456789
call fcn.00412e00
call fcn.00403690
add esp, 0x48
push 0
call fcn.004165ef
int3