Function at 0x4965d0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
mov esi, ecx
call fcn.004961e0
mov byte [esp + 0x10], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004a7b40
mov ecx, dword [ebp + 8]
movzx eax, ax
push eax
push ecx
push str.Setting_
lea edx, [esp + 0x1c]
push str._s_s__d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 3
push bind
lea eax, [esp + 0x28]
push eax
call ebx
mov edi, eax
push 0
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp edi, 0xffffffff
je 0x496784
cmp eax, 0xffffffff
je 0x496784
cmp eax, 0x80e
jne 0x496784
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xc
lea edx, [esi + 0x80c]
push edx
push edi
call ebx
test eax, eax
jne 0x496695
push 1
mov ecx, esi
call fcn.004963c0
push 0
lea eax, [esp + 0x10]
push eax
push 8
lea ecx, [esi + 0x804]
push ecx
push edi
call ebx
test eax, eax
jne 0x4966b5
push 2
mov ecx, esi
call fcn.004963c0
push 0
lea edx, [esp + 0x10]
push edx
push 0xa
lea eax, [esi + 0x7fa]
push eax
push edi
call ebx
test eax, eax
jne 0x4966d5
push 3
mov ecx, esi
call fcn.004963c0
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x2e
lea edx, [esi + 0x7cc]
push edx
push edi
call ebx
test eax, eax
jne 0x4966f5
push 4
mov ecx, esi
call fcn.004963c0
push 0
lea eax, [esp + 0x10]
push eax
push 0xc8
lea ecx, [esi + 0x60]
push ecx
push edi
call ebx
test eax, eax
jne 0x496715
push 5
mov ecx, esi
call fcn.004963c0
push 0
lea edx, [esp + 0x10]
push edx
push 0x6a4
lea eax, [esi + 0x128]
push eax
push edi
call ebx
test eax, eax
jne 0x496738
push 5
mov ecx, esi
call fcn.004963c0
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x30
lea edx, [esi + 0x1c]
push edx
push edi
call ebx
push 0
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esi + 0x4c]
push ecx
push edi
call ebx
push 0
lea edx, [esp + 0x10]
push edx
push 0x10
lea eax, [esi + 0x4e]
push eax
push edi
call ebx
push 0
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esi + 0x5e]
push edx
push edi
call ebx
push 0
lea eax, [esp + 0x10]
push eax
jmp 0x49686f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea ecx, [esp + 0x28]
push ecx
call ebx
mov ecx, esi
mov edi, eax
call fcn.004961e0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x10]
push edx
push 0xc
lea eax, [esi + 0x80c]
push eax
push edi
call ebx
push 0
lea ecx, [esp + 0x10]
push ecx
push 8
lea edx, [esi + 0x804]
push edx
push edi
call ebx
push 0
lea eax, [esp + 0x10]
push eax
push 0xa
lea ecx, [esi + 0x7fa]
push ecx
push edi
call ebx
push 0
lea edx, [esp + 0x10]
push edx
push 0x2e
lea eax, [esi + 0x7cc]
push eax
push edi
call ebx
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xc8
lea edx, [esi + 0x60]
push edx
push edi
call ebx
push 0
lea eax, [esp + 0x10]
push eax
push 0x6a4
lea ecx, [esi + 0x128]
push ecx
push edi
call ebx
push 0
lea edx, [esp + 0x10]
push edx
push 0x30
lea eax, [esi + 0x1c]
push eax
push edi
call ebx
push 0
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esi + 0x4c]
push edx
push edi
call ebx
push 0
lea eax, [esp + 0x10]
push eax
push 0x10
lea ecx, [esi + 0x4e]
push ecx
push edi
call ebx
push 0
lea edx, [esp + 0x10]
push edx
push 1
lea eax, [esi + 0x5e]
push eax
push edi
call ebx
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x14
add esi, 0x818
push esi
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4