Function at 0x594850
Capabilities:
Check if file exists
Copy file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], ecx
xor eax, eax
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.004d7c10
add esp, 0xc
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.004d7c10
add esp, 0xc
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.004275c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x59490b
mov ecx, dword [ebp - 0x418]
add ecx, 0xa4
call fcn.004275c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x59490b
push 0
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.004275c0
push eax
mov ecx, dword [ebp - 0x418]
add ecx, 0xa4
call fcn.004275c0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x41c], 0
lea ecx, [ebp - 0x434]
push ecx
mov edx, dword [ebp - 0x418]
mov ecx, dword [edx + 0x1c]
call fcn.004315f0
jmp 0x59494a
push 0
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x434]
call fcn.00434e60
lea ecx, [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x418]
mov ecx, dword [edx + 0x1c]
call fcn.00430bf0
push eax
lea ecx, [ebp - 0x434]
call fcn.00430ae0
movzx eax, al
test eax, eax
je 0x594a36
lea ecx, [ebp - 0x434]
call fcn.00430ac0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
add edx, 8
push edx
call fcn.004d915b
add esp, 4
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jle 0x594a31
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.004275c0
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x604d38
mov ecx, dword [ebp - 0x41c]
add ecx, 8
push ecx
push 0x604d28
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x604d48
lea edx, [ebp - 0x20c]
push edx
call fcn.004d93a0
add esp, 8
test eax, eax
je 0x594a31
lea eax, [ebp - 0x20c]
push eax
call fcn.004ddedc
add esp, 4
mov dword [ebp - 0x444], eax
mov ecx, dword [ebp - 0x41c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 0x444]
mov dword [eax], ecx
jmp 0x594936
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0x18]
call fcn.004315f0
jmp 0x594a61
push 0
lea ecx, [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00434e60
lea edx, [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0x18]
call fcn.00430bf0
push eax
lea ecx, [ebp - 0x438]
call fcn.00430ae0
movzx ecx, al
test ecx, ecx
je 0x594b4d
lea ecx, [ebp - 0x438]
call fcn.00430ac0
mov edx, dword [eax + 4]
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
add eax, 8
push eax
call fcn.004d915b
add esp, 4
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jle 0x594b48
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.004275c0
push eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x604d40
mov edx, dword [ebp - 0x41c]
add edx, 8
push edx
push 0x604d58
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x604d50
lea eax, [ebp - 0x20c]
push eax
call fcn.004d93a0
add esp, 8
test eax, eax
je 0x594b48
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004ddedc
add esp, 4
mov byte [ebp - 0x41d], al
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x448]
mov dl, byte [ebp - 0x41d]
mov byte [ecx], dl
jmp 0x594a4d
lea eax, [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x20]
call fcn.004315f0
jmp 0x594b78
push 0
lea edx, [ebp - 0x470]
push edx
lea ecx, [ebp - 0x43c]
call fcn.00434e60
lea eax, [ebp - 0x474]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x20]
call fcn.00430bf0
push eax
lea ecx, [ebp - 0x43c]
call fcn.00430ae0
movzx edx, al
test edx, edx
je 0x594c53
lea ecx, [ebp - 0x43c]
call fcn.00430ac0
mov eax, dword [eax + 4]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
add ecx, 8
push ecx
call fcn.004d915b
add esp, 4
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jle 0x594c4e
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.004275c0
push eax
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0x604d78
mov eax, dword [ebp - 0x41c]
add eax, 8
push eax
push 0x604d68
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x604d8c
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004d93a0
add esp, 8
test eax, eax
je 0x594c4e
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x44c], eax
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x44c]
push edx
call fcn.004d95d7
add esp, 8
jmp 0x594b64
mov ecx, dword [ebp - 0x418]
call fcn.00590eb0
mov ecx, dword [ebp - 0x418]
add ecx, 0xbc
call fcn.004275c0
push eax
push 0x604d88
push 0x604db0
push 0x604d9c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x478], 0
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x58]
call fcn.004315f0
jmp 0x594cc4
push 0
lea edx, [ebp - 0x47c]
push edx
lea ecx, [ebp - 0x428]
call fcn.00434e60
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x58]
call fcn.00430bf0
push eax
lea ecx, [ebp - 0x428]
call fcn.00430ae0
movzx edx, al
test edx, edx
je 0x594d5b
lea ecx, [ebp - 0x428]
call fcn.00430ac0
mov eax, dword [eax + 4]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x428]
call fcn.00430ac0
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x418]
call fcn.00593bc0
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x594d56
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x454], eax
mov ecx, dword [ebp - 0x430]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x450], edx
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x454]
mov edx, dword [ecx]
mov dword [eax], edx
jmp 0x594cb0
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x54]
call fcn.004315f0
jmp 0x594d86
push 0
lea edx, [ebp - 0x484]
push edx
lea ecx, [ebp - 0x42c]
call fcn.00434e60
lea eax, [ebp - 0x488]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x54]
call fcn.00430bf0
push eax
lea ecx, [ebp - 0x42c]
call fcn.00430ae0
movzx edx, al
test edx, edx
je 0x594e1d
lea ecx, [ebp - 0x42c]
call fcn.00430ac0
mov eax, dword [eax + 4]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x42c]
call fcn.00430ac0
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x418]
call fcn.00593bc0
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x594e18
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x430]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x458], edx
mov eax, dword [ebp - 0x458]
mov ecx, dword [ebp - 0x45c]
mov dl, byte [ecx]
mov byte [eax], dl
jmp 0x594d72
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484636
mov esp, ebp
pop ebp
ret