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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5bff
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 8
push eax
mov dword [ebp - 0x228], 0x4027
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x510
call fcn.004d3886
add esp, 4
mov dword [ebp - 0x21c], eax
push 0x66
push str.INFO_LINE
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004963e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x522444]
mov dword [0x522474], eax
mov eax, dword [eax + 0x470]
test ecx, ecx
je 0x413288
test eax, eax
je 0x413288
mov dword [0x5223e0], ecx
mov dword [0x5223dc], eax
push 0x490
call fcn.004d3886
mov dword [ebp - 0x21c], eax
push ecx
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0045c1c0
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [0x522474]
mov edi, dword [0x522444]
mov dword [0x522478], eax
mov ecx, dword [ebx + 0x4f0]
mov dword [ebx + 0x478], eax
mov dword [ecx + 8], edi
lea ecx, [eax + 0x6c]
mov edx, dword [ebx + 0x4f0]
add edx, 0x18
je 0x4132e0
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx]
mov dword [0x52246c], eax
mov eax, dword [ebx + 0x4a0]
push 0x104
mov esi, dword [eax + 0xb4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 3
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41363e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.004d9a7e
add esp, 4
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x230]
push 0
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebx + 0x348]
mov ecx, ebx
push esi
push edi
mov edi, dword [ebp - 0x21c]
push edi
call fcn.0049a5a0
movsd xmm0, qword [esi]
movsd qword [ebx + 0x358], xmm0
push edi
test eax, eax
jne 0x413636
mov dword [ebx + 0x414], 1
call fcn.004d9a63
add esp, 4
push dword [ebp - 0x220]
call fcn.0049a9b0
test eax, eax
jne 0x41363e
mov ecx, dword [0x522478]
call fcn.0045d690
test eax, eax
jne 0x413644
mov eax, dword [0x522474]
push dword [eax + 0x44c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004d9c76
mov eax, dword [0x522474]
lea edx, [ebp - 0x220]
add esp, 0xc
mov ecx, 0x103
sub ecx, dword [eax + 0x458]
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x218]
push str.language.txt
call fcn.00453460
mov eax, dword [0x52246c]
add esp, 4
mov ecx, eax
mov dword [ebp - 0x220], eax
call fcn.00406950
push 0
push 0x80
push 3
push 0
push 0
push accept
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4134ed
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x224], eax
test al, 1
je 0x413461
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
jmp 0x4134c1
push eax
call fcn.004d9a7e
add esp, 4
mov edi, eax
lea eax, [ebp - 0x21c]
push 0
push eax
push dword [ebp - 0x224]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
test esi, esi
jne 0x413499
push edi
call fcn.004d9a63
jmp 0x4134be
push dword [ebp - 0x224]
mov esi, dword [ebp - 0x220]
mov ecx, esi
push edi
call fcn.00406760
push edi
test eax, eax
je 0x4134de
call fcn.004d9a63
mov dword [esi + 0x24], 0
add esp, 4
mov ecx, dword [0x522474]
push 0xc97c5303
push 0xbcd3f497
mov ecx, dword [ecx + 0x478]
call fcn.0045bdc0
jmp 0x4134ed
call fcn.004d9a63
add esp, 4
mov dword [esi + 0x24], 1
cmp dword [0x522440], 0
jne 0x413632
mov ecx, dword [0x522474]
cmp dword [ecx + 0x294], 1
jne 0x41352a
push 0
push 0x413700
push 0
push 0x74
push dword [0x522444]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
je 0x41352f
jmp 0x41363e
call fcn.00495e10
mov ecx, dword [0x52246c]
lea edx, [ebp - 0x224]
push 0x3e9
push edx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x413632
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [ebp - 0x224]
push eax
push eax
call edi
mov esi, eax
push esi
call fcn.004d9a7e
add esp, 4
mov ebx, eax
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x224]
push 0
push 0
call edi
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x413629
push 0
push 0x80
push 3
push 0
push 0
push accept
push str.license.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4135c0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4135de
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebp - 0x220], eax
call edi
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
dec ecx
cmp ecx, eax
je 0x413629
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.license.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x413629
push 0
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp - 0x21c]
dec eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
push ebx
call fcn.004d9a63
add esp, 4
xor eax, eax
jmp 0x413664
call fcn.004d9a63
add esp, 4
mov ecx, dword [0x522478]
test ecx, ecx
je 0x41364f
mov eax, dword [ecx]
push 1
call dword [eax + 0x1c]
mov ecx, dword [0x522474]
test ecx, ecx
je 0x41365f
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret