Function at 0x4121e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d928d
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x79a200]
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 edi, dword [ebp + 8]
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov eax, dword [edi]
cmp dword [eax - 4], 1
jle 0x41222d
push dword [eax - 0xc]
mov ecx, edi
call fcn.00406e20
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412283
lea eax, [ebp - 0x324]
mov dword [ebp - 0x324], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [eax + 1]
cmp edi, 5
jae 0x4122c8
push 0
push 0
push str.Error_the_old_version.cfg.
call fcn.0054779e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4122a8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0068d76f
mov esp, ebp
pop ebp
ret 8
lea eax, [edi + 1]
push eax
call fcn.00545633
add esp, 4
mov dword [ebp - 0x31c], eax
test eax, eax
je 0x412283
lea ecx, [edi + 1]
push ecx
push 0
push eax
call fcn.00690e10
add esp, 0xc
mov dword [ebp - 0x328], 0
lea eax, [ebp - 0x328]
push 0
push eax
push edi
push dword [ebp - 0x31c]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00690e10
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00690e10
mov ax, word [0x771380]
mov ebx, dword [ebp - 0x31c]
mov word [ebp - 0x318], ax
mov al, byte [0x771382]
mov byte [ebp - 0x316], al
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x320], 0
push eax
push ebx
call fcn.006a6507
add esp, 0x24
test eax, eax
je 0x412460
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [eax + eax]
push 0x100
lea ecx, [ebp - 0x210]
push ecx
push 0x100
lea ecx, [ebp - 0x110]
push ecx
push 0x771384
push eax
call fcn.00414c20
add esp, 0x18
test eax, eax
je 0x412440
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.006a67d1
push 0x104
lea eax, [ebp - 0x314]
push 0
push eax
call fcn.00690e10
mov eax, dword [ebp + 0xc]
add esp, 0x14
cmp dword [eax - 4], 1
jle 0x4123fc
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
call fcn.00406e20
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0x104
lea ecx, [ebp - 0x314]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.006a6582
add esp, 8
test eax, eax
jne 0x412440
lea eax, [ebp - 0x210]
push eax
call fcn.0069b9c7
add esp, 4
mov esi, eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x318]
push eax
push 0
call fcn.006a6507
add esp, 0xc
test eax, eax
jne 0x412390
push ebx
call fcn.0054562e
add esp, 4
jmp 0x412286