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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x70c0f0]
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.004e1330
add esp, 0xc
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.004e1330
add esp, 0xc
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.004465b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x59588b
mov ecx, dword [ebp - 0x418]
add ecx, 0xa4
call fcn.004465b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x59588b
push 0
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.004465b0
push eax
mov ecx, dword [ebp - 0x418]
add ecx, 0xa4
call fcn.004465b0
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.00467e80
jmp 0x5958ca
push 0
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x434]
call fcn.00470080
lea ecx, [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x418]
mov ecx, dword [edx + 0x1c]
call fcn.00467cb0
push eax
lea ecx, [ebp - 0x434]
call fcn.00467bd0
movzx eax, al
test eax, eax
je 0x5959b6
lea ecx, [ebp - 0x434]
call fcn.00467bb0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
add edx, 8
push edx
call fcn.004e608a
add esp, 4
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jle 0x5959b1
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.004465b0
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x6b5ae4
mov ecx, dword [ebp - 0x41c]
add ecx, 8
push ecx
push 0x6b5ad4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x6b5acc
lea edx, [ebp - 0x20c]
push edx
call fcn.004e664e
add esp, 8
test eax, eax
je 0x5959b1
lea eax, [ebp - 0x20c]
push eax
call fcn.004e6036
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 0x5958b6
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0x18]
call fcn.00467e80
jmp 0x5959e1
push 0
lea ecx, [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00470080
lea edx, [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0x18]
call fcn.00467cb0
push eax
lea ecx, [ebp - 0x438]
call fcn.00467bd0
movzx ecx, al
test ecx, ecx
je 0x595acd
lea ecx, [ebp - 0x438]
call fcn.00467bb0
mov edx, dword [eax + 4]
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
add eax, 8
push eax
call fcn.004e608a
add esp, 4
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jle 0x595ac8
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.004465b0
push eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x6b5ac4
mov edx, dword [ebp - 0x41c]
add edx, 8
push edx
push 0x6b5c48
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x6b5c40
lea eax, [ebp - 0x20c]
push eax
call fcn.004e664e
add esp, 8
test eax, eax
je 0x595ac8
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004e6036
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 0x5959cd
lea eax, [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x20]
call fcn.00467e80
jmp 0x595af8
push 0
lea edx, [ebp - 0x470]
push edx
lea ecx, [ebp - 0x43c]
call fcn.00470080
lea eax, [ebp - 0x474]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x20]
call fcn.00467cb0
push eax
lea ecx, [ebp - 0x43c]
call fcn.00467bd0
movzx edx, al
test edx, edx
je 0x595bd3
lea ecx, [ebp - 0x43c]
call fcn.00467bb0
mov eax, dword [eax + 4]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
add ecx, 8
push ecx
call fcn.004e608a
add esp, 4
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jle 0x595bce
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.004465b0
push eax
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0x6b5c30
mov eax, dword [ebp - 0x41c]
add eax, 8
push eax
push 0x6b5c20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x6b5c90
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004e664e
add esp, 8
test eax, eax
je 0x595bce
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.004e67ab
add esp, 8
jmp 0x595ae4
mov ecx, dword [ebp - 0x418]
call fcn.00591e30
mov ecx, dword [ebp - 0x418]
add ecx, 0xbc
call fcn.004465b0
push eax
push 0x6b5c8c
push 0x6b5c6c
push 0x6b5c58
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.00467e80
jmp 0x595c44
push 0
lea edx, [ebp - 0x47c]
push edx
lea ecx, [ebp - 0x428]
call fcn.00470080
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x58]
call fcn.00467cb0
push eax
lea ecx, [ebp - 0x428]
call fcn.00467bd0
movzx edx, al
test edx, edx
je 0x595cdb
lea ecx, [ebp - 0x428]
call fcn.00467bb0
mov eax, dword [eax + 4]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x428]
call fcn.00467bb0
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x418]
call fcn.00594b40
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x595cd6
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 0x595c30
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x54]
call fcn.00467e80
jmp 0x595d06
push 0
lea edx, [ebp - 0x484]
push edx
lea ecx, [ebp - 0x42c]
call fcn.00470080
lea eax, [ebp - 0x488]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x54]
call fcn.00467cb0
push eax
lea ecx, [ebp - 0x42c]
call fcn.00467bd0
movzx edx, al
test edx, edx
je 0x595d9d
lea ecx, [ebp - 0x42c]
call fcn.00467bb0
mov eax, dword [eax + 4]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x42c]
call fcn.00467bb0
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x418]
call fcn.00594b40
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x595d98
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 0x595cf2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret