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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x5c24ac]
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.00485370
add esp, 0xc
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00485370
add esp, 0xc
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.0041a090
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ea2b
mov ecx, dword [ebp - 0x418]
add ecx, 0xa4
call fcn.0041a090
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45ea2b
push 0
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.0041a090
push eax
mov ecx, dword [ebp - 0x418]
add ecx, 0xa4
call fcn.0041a090
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.00463f90
jmp 0x45ea6a
push 0
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x434]
call fcn.00463760
lea ecx, [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x418]
mov ecx, dword [edx + 0x1c]
call fcn.00464090
push eax
lea ecx, [ebp - 0x434]
call fcn.00431d00
movzx eax, al
test eax, eax
je 0x45eb56
lea ecx, [ebp - 0x434]
call fcn.00463710
mov ecx, dword [eax + 4]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
add edx, 8
push edx
call fcn.00488e51
add esp, 4
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jle 0x45eb51
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.0041a090
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x56ac50
mov ecx, dword [ebp - 0x41c]
add ecx, 8
push ecx
push 0x56ac58
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x56ac68
lea edx, [ebp - 0x20c]
push edx
call fcn.0048efc8
add esp, 8
test eax, eax
je 0x45eb51
lea eax, [ebp - 0x20c]
push eax
call fcn.0048a073
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 0x45ea56
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0x18]
call fcn.00463f90
jmp 0x45eb81
push 0
lea ecx, [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00463760
lea edx, [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0x18]
call fcn.00464090
push eax
lea ecx, [ebp - 0x438]
call fcn.00431d00
movzx ecx, al
test ecx, ecx
je 0x45ec6d
lea ecx, [ebp - 0x438]
call fcn.00463710
mov edx, dword [eax + 4]
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
add eax, 8
push eax
call fcn.00488e51
add esp, 4
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jle 0x45ec68
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.0041a090
push eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x56ac70
mov edx, dword [ebp - 0x41c]
add edx, 8
push edx
push 0x56ac78
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x56ac88
lea eax, [ebp - 0x20c]
push eax
call fcn.0048efc8
add esp, 8
test eax, eax
je 0x45ec68
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0048a073
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 0x45eb6d
lea eax, [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x20]
call fcn.00463f90
jmp 0x45ec98
push 0
lea edx, [ebp - 0x470]
push edx
lea ecx, [ebp - 0x43c]
call fcn.00463760
lea eax, [ebp - 0x474]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x20]
call fcn.00464090
push eax
lea ecx, [ebp - 0x43c]
call fcn.00431d00
movzx edx, al
test edx, edx
je 0x45ed73
lea ecx, [ebp - 0x43c]
call fcn.00463710
mov eax, dword [eax + 4]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
add ecx, 8
push ecx
call fcn.00488e51
add esp, 4
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jle 0x45ed6e
mov ecx, dword [ebp - 0x418]
add ecx, 0x8c
call fcn.0041a090
push eax
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0x56ac90
mov eax, dword [ebp - 0x41c]
add eax, 8
push eax
push 0x56aca0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.nothing
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0048efc8
add esp, 8
test eax, eax
je 0x45ed6e
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.0048dcd9
add esp, 8
jmp 0x45ec84
mov ecx, dword [ebp - 0x418]
call fcn.0045f8a0
mov ecx, dword [ebp - 0x418]
add ecx, 0xbc
call fcn.0041a090
push eax
push 0x56acc0
push 0x56acc4
push str.SetModify
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.00463f90
jmp 0x45ede4
push 0
lea edx, [ebp - 0x47c]
push edx
lea ecx, [ebp - 0x428]
call fcn.00463760
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x58]
call fcn.00464090
push eax
lea ecx, [ebp - 0x428]
call fcn.00431d00
movzx edx, al
test edx, edx
je 0x45ee7b
lea ecx, [ebp - 0x428]
call fcn.00463710
mov eax, dword [eax + 4]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x428]
call fcn.00463710
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x418]
call fcn.004603f0
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x45ee76
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 0x45edd0
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x54]
call fcn.00463f90
jmp 0x45eea6
push 0
lea edx, [ebp - 0x484]
push edx
lea ecx, [ebp - 0x42c]
call fcn.00463760
lea eax, [ebp - 0x488]
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x54]
call fcn.00464090
push eax
lea ecx, [ebp - 0x42c]
call fcn.00431d00
movzx edx, al
test edx, edx
je 0x45ef3d
lea ecx, [ebp - 0x42c]
call fcn.00463710
mov eax, dword [eax + 4]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x42c]
call fcn.00463710
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x418]
call fcn.004603f0
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x45ef38
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 0x45ee92
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e95
mov esp, ebp
pop ebp
ret