Function at 0x407df0
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x814
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x810], eax
mov eax, dword [esp + 0x818]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov esi, edx
cmp eax, ebx
je 0x40809f
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407e24
sub eax, edx
je 0x40809f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40809f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push esi
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x40807b
push 0x3ff
lea edx, [esp + 0x25]
push ebx
push edx
mov byte [esp + 0x2c], bl
call fcn.00446e10
add esp, 0xc
push ebx
lea eax, [esp + 0x18]
push eax
push 0x400
lea ecx, [esp + 0x2c]
push ecx
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408096
cmp dword [esp + 0x14], ebx
je 0x408096
push 0x3ff
lea edx, [esp + 0x425]
push ebx
push edx
mov byte [esp + 0x42c], bl
call fcn.00446e10
lea eax, [esp + 0x42c]
push eax
lea eax, [esp + 0x30]
mov ecx, 0x400
call fcn.00423f20
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x408096
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x42c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408096
cmp dword [esp + 0x10], ebx
jne 0x408096
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push 0x473127
push str.Title
push str.info
call edi
mov eax, dword [esp + 0x18]
push esi
push eax
push str.ActionID
push str.info
call edi
mov ecx, dword [esp + 0x1c]
push esi
push ecx
push str.SubKey
push str.info
call edi
push esi
push str.G3A2UK_K0P0ND_L0EFSU_FH5300
push 0x473500
push str.info
call edi
push esi
push str.CRCHRC6XYNV4G
push 0x473504
push str.info
call edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push esi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x40807b
push 0x400
lea edx, [esp + 0x24]
push 0
push edx
call fcn.00446e10
add esp, 0xc
push 0
lea eax, [esp + 0x18]
push eax
push 0x400
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408078
cmp dword [esp + 0x14], 0
je 0x408078
push 0x400
lea edx, [esp + 0x424]
push 0
push edx
call fcn.00446e10
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408010
lea ecx, [esp + 0x20]
push ecx
sub eax, edx
lea edx, [esp + 0x424]
push 0x400
push edx
call fcn.00423dc0
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x408078
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x42c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408078
cmp dword [esp + 0x10], edi
jne 0x408078
push esi
call ebx
mov eax, 1
jmp 0x40807d
push esi
call ebx
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.004426a0
add esp, 0x814
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40807b
mov ecx, dword [esp + 0x818]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004426a0
add esp, 0x814
ret