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

Disassembly:
mov eax, 0x16b0
call fcn.004403b0
mov eax, dword [0x4642d0]
xor eax, esp
mov dword [esp + 0x16ac], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x16c0]
lea eax, [esp + 0x14b4]
push edi
mov edi, dword [esp + 0x16c8]
push 0
push eax
lea eax, [esp + 0x15c4]
mov dword [esp + 0x48], esi
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.00444a33
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x14cc]
push eax
lea eax, [esp + 0x15d4]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x13d4]
push str._s_s_s.dgx
push eax
call ebx
lea eax, [esp + 0x13dc]
push 0
push eax
call fcn.00444a96
add esp, 0x30
test eax, eax
je 0x4229a9
push 0x46a3b4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4229a9
lea eax, [esp + 0x14b8]
push eax
push 0x46a3b4
lea eax, [esp + 0x13bc]
push str._s_s.dgx
push eax
call ebx
add esp, 0x10
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [esp + 0x13b4]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call ebp
mov ebx, eax
mov dword [esp + 0x28], ebx
cmp ebx, 0xffffffff
je 0x422d4a
push 0
lea eax, [esp + 0x14]
push eax
push 0x1354
lea eax, [esp + 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xa0], 0x78
jne 0x422d43
push edi
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x422d43
cmp dword [esp + 0x1b4], eax
je 0x422d43
push eax
push 0x80
push 3
push eax
push eax
push eax
push edi
call ebp
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x422d43
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x1a8], eax
jne 0x422d39
lea eax, [esp + 0x1ac]
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jne 0x422d39
mov eax, dword [esp + 0x1bc]
test eax, eax
je 0x422a98
push eax
push 1
mov ecx, esi
call fcn.00405d00
mov eax, dword [esp + 0x1b8]
test eax, eax
je 0x422aad
push eax
push 2
mov ecx, esi
call fcn.00405d00
lea edi, [esi + 0x128]
xor ebx, ebx
mov ebp, edi
cmp dword [ebp], 0
je 0x422ad5
push dword [esp + ebx*4 + 0x1c0]
mov ecx, esi
push ebx
call fcn.00402400
inc ebx
add ebp, 4
cmp ebx, 4
jl 0x422ab7
lea eax, [esp + 0x12c4]
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x117c]
lea eax, [esp + 0x116c]
sub ecx, esi
sub eax, esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x114c]
sub edx, esi
lea eax, [esp + 0x115c]
sub eax, esi
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x118c]
mov dword [esp + 0x20], eax
sub ecx, esi
lea ebx, [esp + 0x1d4]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], ecx
mov ecx, dword [edi]
test ecx, ecx
je 0x422bf9
test byte [esp + 0x1b4], 1
je 0x422b55
mov eax, dword [ecx]
push dword [edx + edi]
call dword [eax + 0x15c]
mov eax, dword [esp + 0x20]
test byte [esp + 0x1b4], 2
je 0x422b7b
mov edx, dword [eax + edi]
mov ebx, dword [esi + edi]
cmp edx, ebx
je 0x422b77
mov ecx, dword [edi]
push 0
push ebx
push edx
mov eax, dword [ecx]
call dword [eax + 0xa4]
mov ebx, dword [esp + 0x14]
test byte [esp + 0x1b4], 4
je 0x422b90
mov ecx, dword [edi]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x184]
test byte [esp + 0x1b4], 0x10
je 0x422bd5
mov esi, dword [esp + 0x34]
xor eax, eax
mov ecx, dword [edi]
cmp dword [esi + edi], eax
mov edx, dword [ecx]
cmovne eax, dword [0x464f20]
push eax
call dword [edx + 0x30]
mov ecx, dword [edi]
mov edx, dword [esp + 0x38]
mov eax, dword [ecx]
push dword [edi + edx]
call dword [eax + 0xac]
mov ecx, dword [edi]
push dword [esp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0xc0]
mov esi, dword [esp + 0x1c]
add dword [esp + 0x18], 0x3c
inc ebp
mov eax, dword [esp + 0x20]
add ebx, 0x428
mov edx, dword [esp + 0x3c]
add edi, 4
mov dword [esp + 0x14], ebx
cmp ebp, 4
jl 0x422b32
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x1d0]
push dword [esi + 4]
mov dword [esi + 0x138], eax
call dword [sym.imp.USER32.dll_SetFocus]
test byte [esp + 0x1b4], 8
mov ebx, dword [esp + 0x28]
je 0x422d39
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
push 4
lea eax, [esi + 0x124]
push eax
push ebx
call ebp
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
push 0x14
lea eax, [esp + 0x50]
push eax
push ebx
call ebp
cmp dword [esp + 0x10], edi
je 0x422d32
xor ebp, ebp
nop dword [eax]
mov ecx, dword [esi + 0x120]
lea eax, [ecx - 1]
cmp edi, eax
jne 0x422cb3
lea eax, [ecx + 0x280]
mov dword [esi + 0x120], eax
lea eax, [eax + eax*4]
shl eax, 2
push eax
push dword [esi + 0x11c]
call fcn.004441db
mov ecx, dword [esi + 0x120]
sub ecx, 0x280
mov dword [esi + 0x11c], eax
push 0x3200
push 0
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
push eax
call fcn.004421e0
add esp, 0x14
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x422cf0
push eax
call fcn.0044419d
add esp, 4
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x10]
push 0
push ecx
push dword [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi + 0x11c]
movups xmm0, xmmword [esp + 0x44]
movups xmmword [ecx + ebp], xmm0
mov eax, dword [esp + 0x54]
mov dword [ecx + ebp + 0x10], eax
cmp byte [esp + 0x44], 0
je 0x422d32
push 0
lea eax, [esp + 0x14]
inc edi
push eax
push 0x14
lea eax, [esp + 0x50]
add ebp, 0x14
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 0
jne 0x422c60
mov ecx, esi
call fcn.00405280
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x16bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043fe9e
add esp, 0x16b0
ret