Function at 0x40ae20
Capabilities:
Copy file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460de6
mov eax, dword fs:[0]
push eax
mov eax, 0x8120
call fcn.00445510
mov eax, dword [0x47bb04]
xor eax, ebp
mov dword [ebp - 0xd0], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8120], ecx
lea eax, [ebp - 0x80dc]
push eax
mov ecx, dword [ebp - 0x8120]
call fcn.0040b220
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x80dc]
call fcn.0040c870
movzx ecx, al
test ecx, ecx
je 0x40aeaa
mov dword [ebp - 0x80ec], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80dc]
call fcn.004026d0
mov eax, dword [ebp - 0x80ec]
jmp 0x40b200
push 1
lea ecx, [ebp - 0xa4]
call fcn.0040cdc0
mov byte [ebp - 4], 1
push 0x40
push 1
lea ecx, [ebp - 0x80dc]
call fcn.00402770
push eax
lea ecx, [ebp - 0xa4]
call fcn.0040cef0
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 4]
lea ecx, [ebp + eax - 0xa4]
call fcn.0040bff0
movzx ecx, al
test ecx, ecx
je 0x40af76
lea edx, [ebp - 0x80e4]
push edx
call fcn.00402f10
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80e8]
call fcn.00402690
mov byte [ebp - 4], 3
push 0x465470
mov eax, dword [ebp - 0x80e4]
push eax
push str._s_sys_s
lea ecx, [ebp - 0x80e8]
push ecx
call fcn.00404bc0
add esp, 0x10
push 1
lea ecx, [ebp - 0x80dc]
call fcn.00402770
push eax
lea ecx, [ebp - 0x80e8]
call fcn.00402770
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80e8]
call fcn.004026d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80e4]
call fcn.004026d0
mov byte [ebp - 0x80d4], 0
push 0x7ffe
push 0
lea edx, [ebp - 0x80d3]
push edx
call fcn.00445490
add esp, 0xc
lea ecx, [ebp - 0x80dc]
call fcn.00402770
push eax
push 0x7fff
lea eax, [ebp - 0x80d4]
push eax
push 0x465488
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0xcc]
call fcn.0040cbd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x80d4]
push edx
mov ecx, dword [ebp - 0x8120]
call fcn.0040ab40
push 0x465490
lea ecx, [ebp - 0xac]
call fcn.00403f50
mov byte [ebp - 4], 5
push 0x464d1e
lea ecx, [ebp - 0x80d8]
call fcn.00403f50
mov byte [ebp - 4], 6
mov dword [ebp - 0x80e0], 0
lea eax, [ebp - 0x80f4]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040cc90
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
jmp 0x40b03d
lea ecx, [ebp - 0x14]
call fcn.0040cd70
lea eax, [ebp - 0x80fc]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040ccf0
push eax
lea ecx, [ebp - 0x14]
call fcn.0040cd90
movzx ecx, al
test ecx, ecx
je 0x40b0a5
lea ecx, [ebp - 0x14]
call fcn.0040cd50
add eax, 4
push eax
lea ecx, [ebp - 0x80d8]
call fcn.004026f0
lea ecx, [ebp - 0x80d8]
call fcn.00402770
push eax
mov ecx, dword [ebp - 0x8120]
add ecx, 0x3d8
call fcn.0040c0e0
test eax, eax
jne 0x40b0a3
mov dword [ebp - 0x80e0], 1
jmp 0x40b0a5
jmp 0x40b035
cmp dword [ebp - 0x80e0], 0
jne 0x40b14a
mov edx, dword [ebp - 0x8120]
add edx, 0x3d8
push ecx
mov ecx, esp
mov dword [ebp - 0x8108], esp
push edx
call fcn.004026b0
mov dword [ebp - 0x8124], eax
push str.serveraddr
lea eax, [ebp - 0x8110]
push eax
call fcn.004138f0
add esp, 0xc
mov dword [ebp - 0x8128], eax
mov ecx, dword [ebp - 0x8128]
mov dword [ebp - 0x812c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x812c]
push edx
lea ecx, [ebp - 0x8104]
call fcn.00413960
mov byte [ebp - 4], 8
lea eax, [ebp - 0x8104]
push eax
lea ecx, [ebp - 0x8118]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.0040cc00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8104]
call fcn.0040bfd0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8110]
call fcn.0040c080
push 0x7fff
push 0
lea edx, [ebp - 0x80d4]
push edx
call fcn.00445490
add esp, 0xc
push 0x7fff
lea eax, [ebp - 0x80d4]
push eax
lea ecx, [ebp - 0xcc]
push ecx
mov ecx, dword [ebp - 0x8120]
call fcn.0040acb0
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x80dc]
call fcn.00402770
push eax
lea edx, [ebp - 0x80d4]
push edx
push str.REMOTE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov dword [ebp - 0x811c], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80d8]
call fcn.004026d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
call fcn.004026d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.0040c060
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.0040c030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80dc]
call fcn.004026d0
mov eax, dword [ebp - 0x811c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0xd0]
xor ecx, ebp
call fcn.00445478
mov esp, ebp
pop ebp
ret