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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a27f7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x318
mov eax, dword [0x616dec]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2f8], ecx
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 1
xor eax, eax
mov dword [ebp - 0x2fc], 7
push 0x5fcbd0
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x300], 0
mov word [ebp - 0x310], ax
call fcn.00424710
sub esp, 0x18
mov dword [ebp - 4], 0
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x422912
mov eax, dword [edx]
jmp 0x422914
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x228], cx
je 0x42293f
lea ecx, [ebp - 0x228]
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422930
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x228]
mov ecx, edx
push eax
call fcn.00424710
push 0
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x25c]
call fcn.00430f90
add esp, 0x1c
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2fc]
cmp eax, 8
jb 0x422986
inc eax
lea ecx, [ebp - 0x310]
push eax
push dword [ebp - 0x310]
call fcn.00424d00
push 0xb
xor eax, eax
mov dword [ebp - 0x2fc], 7
push 0x5fcbd4
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x300], 0
mov word [ebp - 0x310], ax
call fcn.00424ee0
push 0
push 0x5fcbc0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x240], 0
call fcn.00424a00
push 0
push 0
push 4
push 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x25c]
cmp dword [ebp - 0x248], 8
push 1
cmovae eax, dword [ebp - 0x25c]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x422bcc
push 0
push esi
mov dword [ebp - 0x244], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x422a80
lea ecx, [edi + 1]
push ecx
call fcn.005545e0
add esp, 4
mov dword [ebp - 0x2f4], eax
lea ecx, [ebp - 0x244]
push 0
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422a72
mov eax, dword [ebp - 0x2f4]
lea ecx, [ebp - 0x240]
push eax
mov byte [eax + edi], 0
call fcn.00424300
push dword [ebp - 0x2f4]
call fcn.005540dd
add esp, 4
test esi, esi
je 0x422a8b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [ebp - 0x278], xmm0
mov dword [ebp - 0x26c], 0
movq qword [ebp - 0x268], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
and eax, 0xfffffe00
mov dword [ebp - 0x270], eax
push 0x74
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.00556fd0
add esp, 0xc
lea ecx, [ebp - 0x2f0]
call fcn.0043ef30
mov byte [ebp - 4], 6
cmp dword [ebp - 0x230], 0
jbe 0x422ba7
cmp dword [ebp - 0x22c], 0x10
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
cmp byte [eax], 0x7b
jne 0x422ba7
push ecx
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0043f060
test al, al
je 0x422ba0
push 0x5fd173
push str.Version
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 7
call fcn.0043d200
lea ecx, [ebp - 0x328]
push ecx
mov ecx, eax
call fcn.0043c430
mov ecx, dword [ebp - 0x2f8]
push eax
add ecx, 0xa4
call fcn.00424380
lea ecx, [ebp - 0x328]
call fcn.00424340
jmp 0x422bb6
push str.LoadEngineCfgFile_Error_2
jmp 0x422bac
push str.LoadEngineCfgFile_Error
push 2
call fcn.0043b3c0
add esp, 8
lea ecx, [ebp - 0x2f0]
call fcn.00421670
lea ecx, [ebp - 0x278]
call fcn.0043c230
mov eax, dword [ebp - 0x22c]
cmp eax, 0x10
jb 0x422bea
inc eax
lea ecx, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.00424d60
mov eax, dword [ebp - 0x248]
mov byte [ebp - 0x240], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
cmp eax, 8
jb 0x422c23
inc eax
lea ecx, [ebp - 0x25c]
push eax
push dword [ebp - 0x25c]
call fcn.00424d00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005540cc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret