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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x464248
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x464764
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov ebx, 0x3e9
push ebx
call sub.termb.dll_CVR_InitComm
dec eax
jne 0x46427a
mov esi, 1
jmp 0x464283
inc ebx
cmp ebx, 0x3f9
jne 0x46426a
dec esi
je 0x46428d
xor ebx, ebx
jmp 0x4646f9
mov dl, 1
mov eax, dword [0x42a74c]
call fcn.0042a84c
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.0042a8ec
mov cl, 1
mov edx, 0x46477c
mov eax, ebx
call fcn.0042a950
call fcn.00409dd4
fstp qword [ebp - 0x38]
wait
lea ecx, [ebp - 0x14c]
mov edx, 0x464798
mov eax, ebx
call fcn.0042ab18
push dword [ebp - 0x14c]
push 0x4647ac
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea edx, [ebp - 0x150]
mov eax, 0x4647b8
call fcn.0040aa20
push dword [ebp - 0x150]
push 0x4647cc
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004044ec
lea ecx, [ebp - 0x154]
mov edx, 0x464798
mov eax, ebx
call fcn.0042ab18
push dword [ebp - 0x154]
push 0x4647ac
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea edx, [ebp - 0x158]
mov eax, 0x4647b8
call fcn.0040aa20
push dword [ebp - 0x158]
push 0x4647dc
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.004044ec
mov eax, ebx
call fcn.0040333c
lea eax, [ebp - 0x15c]
call fcn.00408acc
mov edx, dword [ebp - 0x15c]
lea eax, [ebp - 0x30]
mov ecx, 0x4647f0
call fcn.00404478
call sub.termb.dll_CVR_Authenticate
dec eax
jne 0x4646f7
lea eax, [ebp - 4]
mov edx, 0x1f
call fcn.004047b8
lea eax, [ebp - 8]
mov edx, 3
call fcn.004047b8
lea eax, [ebp - 0xc]
mov edx, 0xa
call fcn.004047b8
lea eax, [ebp - 0x10]
mov edx, 9
call fcn.004047b8
lea eax, [ebp - 0x14]
mov edx, 0x13
call fcn.004047b8
lea eax, [ebp - 0x18]
mov edx, 0x47
call fcn.004047b8
lea eax, [ebp - 0x1c]
mov edx, 0x1f
call fcn.004047b8
lea eax, [ebp - 0x20]
mov edx, 9
call fcn.004047b8
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.004047b8
push 1
call sub.termb.dll_CVR_Read_Content
mov esi, eax
call sub.termb.dll_CVR_CloseComm
dec esi
jne 0x4646f3
lea edx, [ebp - 0x164]
mov eax, dword [0x468308]
mov eax, dword [eax]
call fcn.00451120
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x160]
call fcn.0040895c
mov edx, dword [ebp - 0x160]
lea eax, [ebp - 0x48]
mov ecx, 0x464800
call fcn.00404478
lea edx, [ebp - 0x16c]
mov eax, dword [0x468308]
mov eax, dword [eax]
call fcn.00451120
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x168]
call fcn.0040895c
lea eax, [ebp - 0x168]
mov edx, 0x464814
call fcn.00404434
mov eax, dword [ebp - 0x168]
xor edx, edx
call fcn.004087b4
mov ebx, eax
mov ecx, 2
xor edx, edx
mov eax, ebx
call fcn.00408890
mov dword [ebp - 0x3c], eax
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00408890
mov eax, dword [ebp - 0x3c]
add eax, 2
call fcn.0040808c
mov esi, eax
mov edx, esi
mov ecx, dword [ebp - 0x3c]
mov eax, ebx
call fcn.00408838
mov eax, ebx
call fcn.004088d4
lea edx, [ebp - 0x170]
mov eax, esi
call fcn.0040511c
mov edx, dword [ebp - 0x170]
lea eax, [ebp - 0x40]
call fcn.004049a0
lea eax, [ebp - 0x174]
push eax
mov ecx, 0xf
mov edx, 1
mov eax, dword [ebp - 0x40]
call fcn.00404b5c
mov edx, dword [ebp - 0x174]
lea eax, [ebp - 4]
call fcn.004043f4
lea eax, [ebp - 0x40]
mov ecx, 0xf
mov edx, 1
call fcn.00404ba8
lea eax, [ebp - 0x178]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x40]
call fcn.00404b5c
mov eax, dword [ebp - 0x178]
mov edx, 0x464820
call fcn.00404ad8
jne 0x464551
lea eax, [ebp - 8]
mov edx, 0x46482c
call fcn.00404204
jmp 0x46455e
lea eax, [ebp - 8]
mov edx, 0x464838
call fcn.00404204
lea eax, [ebp - 0x40]
mov ecx, 1
mov edx, 1
call fcn.00404ba8
lea eax, [ebp - 0x44]
call fcn.0040416c
lea eax, [ebp - 0x17c]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x40]
call fcn.00404b5c
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 0x44]
call fcn.004043f4
mov eax, dword [ebp - 0x48]
call fcn.0040462c
push eax
push 0x21
lea eax, [ebp - 0x148]
push eax
push 0x46483c
mov eax, dword [ebp - 0x44]
call fcn.0040462c
push eax
push 0x464840
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x148]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
lea eax, [ebp - 0x40]
mov ecx, 2
mov edx, 1
call fcn.00404ba8
lea eax, [ebp - 0x184]
push eax
mov ecx, 8
mov edx, 1
mov eax, dword [ebp - 0x40]
call fcn.00404b5c
mov edx, dword [ebp - 0x184]
lea eax, [ebp - 0x180]
call fcn.004043f4
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x10]
call fcn.00464124
lea eax, [ebp - 0x40]
mov ecx, 8
mov edx, 1
call fcn.00404ba8
lea eax, [ebp - 0x188]
push eax
mov ecx, 0x23
mov edx, 1
mov eax, dword [ebp - 0x40]
call fcn.00404b5c
mov edx, dword [ebp - 0x188]
lea eax, [ebp - 0x18]
call fcn.004043f4
lea eax, [ebp - 0x40]
mov ecx, 0x23
mov edx, 1
call fcn.00404ba8
lea eax, [ebp - 0x18c]
push eax
mov ecx, 0x12
mov edx, 1
mov eax, dword [ebp - 0x40]
call fcn.00404b5c
mov edx, dword [ebp - 0x18c]
lea eax, [ebp - 0x14]
call fcn.004043f4
mov eax, esi
call fcn.00402768
push 0
mov eax, dword [ebp - 0x2c]
call fcn.0040462c
push eax
mov eax, dword [ebp - 0x30]
call fcn.0040462c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4646ef
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00464f38
test al, al
je 0x4646ef
mov bl, 1
jmp 0x4646f9
xor ebx, ebx
jmp 0x4646f9
xor ebx, ebx
jmp 0x4646f9
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46476b
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.00404864
lea eax, [ebp - 0x180]
call fcn.0040416c
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.00404864
lea eax, [ebp - 0x170]
mov edx, 0xa
call fcn.00404190
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404190
lea eax, [ebp - 0x40]
call fcn.0040484c
lea eax, [ebp - 0x30]
mov edx, 0xc
call fcn.00404190
ret