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

Disassembly:
sub esp, 0x230
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x234]
push ebx
push ebp
push esi
mov dword [esp + 0x1c], eax
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
sub eax, 0x10
cmp dword [eax + 0xc], 1
push edi
mov dword [esp + 0x18], ebx
jle 0x407c81
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401b60
mov esi, dword [esi]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407cce
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
add edi, 1
cmp edi, 5
jae 0x407cd6
push ebx
push ebx
push str.Error_the_old_version.cfg.
call fcn.00456541
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x407ecd
lea ebx, [edi + 1]
push ebx
call fcn.0044e523
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x407cce
push ebx
push 0
push ebp
call fcn.00475860
add esp, 0xc
xor ebx, ebx
push ebx
lea eax, [esp + 0x30]
push eax
push edi
push ebp
push esi
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xff
lea ecx, [esp + 0x3d]
push ebx
push ecx
mov byte [esp + 0x44], bl
call fcn.00475860
add esp, 0xc
push 0xff
lea edx, [esp + 0x13d]
push ebx
push edx
mov byte [esp + 0x144], bl
call fcn.00475860
mov ax, word [0x4ab4f0]
mov cl, byte [0x4ab4f2]
add esp, 0xc
lea edx, [esp + 0x1c]
mov word [esp + 0x14], ax
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x22], cl
call fcn.00473546
add esp, 0xc
cmp eax, ebx
je 0x407ec0
jmp 0x407d80
push 0x100
lea ecx, [esp + 0x13c]
push ecx
push 0x100
lea edx, [esp + 0x44]
push edx
push 0x4ab4f4
push eax
call fcn.004736b9
add esp, 0x18
test eax, eax
je 0x407ea4
lea eax, [esp + 0x38]
push 0x100
push eax
call fcn.00472f8c
lea ecx, [esp + 0x40]
push str.version
push ecx
call fcn.004737e0
add esp, 0x10
test eax, eax
jne 0x407de8
lea edx, [esp + 0x138]
push edx
call fcn.00473830
mov dword [esp + 0x1c], eax
jmp 0x407ea1
lea eax, [esp + 0x38]
push str.skipnum
push eax
call fcn.004737e0
add esp, 8
test eax, eax
jne 0x407e77
lea ecx, [esp + 0x138]
push ecx
call fcn.00473830
mov esi, dword [esp + 0x24]
mov edi, dword [esi + 0x20]
add esi, 0x18
add esp, 4
cmp dword [esi + 4], edi
mov dword [esp + 0x24], eax
jbe 0x407e26
call fcn.0047263c
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x407e33
call fcn.0047263c
lea edx, [esp + 0x24]
push edx
push edi
push esi
push ebx
push esi
lea eax, [esp + 0x44]
call fcn.0040aa20
mov edi, dword [esi + 8]
add esp, 0x14
cmp dword [esi + 4], edi
jbe 0x407e55
call fcn.0047263c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x407e61
cmp eax, esi
je 0x407e66
call fcn.0047263c
cmp dword [esp + 0x34], edi
jne 0x407ea4
lea ebx, [esp + 0x24]
call fcn.00409210
jmp 0x407ea4
lea eax, [esp + 0x38]
push str.nextversion
push eax
call fcn.004737e0
add esp, 8
test eax, eax
jne 0x407ea4
lea ecx, [esp + 0x138]
push ecx
call fcn.00473830
mov edx, dword [esp + 0x24]
mov dword [edx + 0x54], eax
add esp, 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
call fcn.00473546
add esp, 0xc
test eax, eax
jne 0x407d80
push ebp
call fcn.0044e528
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004716ba
add esp, 0x230
ret 4