Function at 0x22218a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [eax + 0x34]
push esi
push edi
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.022214f0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x2221b8f
mov eax, dword [esp + 0x14]
cmp eax, ebx
jle 0x2221b8f
dec eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x2221b82
cmp esi, ebx
jne 0x2221b82
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax*4]
push ebx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x2221916
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea edx, [esp + 0x44]
push edx
push 0x20
lea eax, [esp + 0x28]
push eax
push edi
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2221b76
cmp dword [esp + 0x40], 0x20
jne 0x2221b76
mov eax, dword [esp + 0x1c]
cmp eax, 0x40000000
je 0x2221a8b
cmp eax, 0x50000000
je 0x2221a11
cmp eax, 0x60000000
jne 0x2221b60
cmp dword [esp + 0x28], ebx
je 0x2221b60
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + ecx*4]
push eax
push ebp
call fcn.0225ed50
mov edi, eax
mov ecx, dword [edi + 0x2b4]
push ecx
push 1
call fcn.0226b127
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x22219a5
mov esi, 0x446
jmp 0x2221b60
mov edx, dword [esp + 0x34]
push edx
push edi
call fcn.022601a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x2221b57
mov eax, dword [esp + 0x34]
push ebx
push eax
push edi
call fcn.02260350
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x22219fe
mov ecx, dword [esp + 0x34]
push ebx
push ecx
push edi
call fcn.02228880
mov eax, dword [esp + 0x40]
mov edx, dword [ebp + 0x83c]
add esp, 0xc
push eax
push ebx
push edi
call dword [edx + 0x274]
mov esi, eax
test esi, esi
je 0x2221b57
mov ecx, dword [esp + 0x34]
push ecx
push edi
call fcn.022604a0
add esp, 8
jmp 0x2221b57
cmp dword [esp + 0x28], ebx
je 0x2221b60
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + edx*4]
push ecx
push ebp
call fcn.0225ed50
mov edi, eax
mov edx, dword [edi + 0x2b4]
push edx
push 1
call fcn.0226b127
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x2221a50
mov esi, 0x446
jmp 0x2221b60
mov eax, dword [esp + 0x34]
push ebx
push eax
push edi
call fcn.02260350
add esp, 0xc
test eax, eax
jne 0x2221a72
mov ecx, dword [esp + 0x34]
push ebx
push ecx
push edi
call fcn.02228880
add esp, 0xc
mov edx, dword [esp + 0x34]
push edx
push edi
call fcn.022604a0
push ebx
call fcn.0226affd
add esp, 0xc
jmp 0x2221b60
cmp dword [esp + 0x28], ebx
je 0x2221b60
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + eax*4]
push edx
push ebp
call fcn.0225ed50
mov edi, eax
mov eax, dword [edi + 0x2b4]
push eax
push 1
call fcn.0226b127
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x2221aca
mov esi, 0x446
jmp 0x2221b60
mov ecx, dword [esp + 0x34]
push ebx
push ecx
push edi
call fcn.02260350
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x2221b57
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.022438c0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x2221b57
mov edx, dword [esp + 0x34]
push ebx
push edx
push edi
call fcn.02228880
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
push ebx
push eax
push ecx
push edi
call fcn.02259060
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x2221b4d
mov edx, dword [esp + 0x34]
push ebx
push edx
push edi
call fcn.02260140
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x2221b4d
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x83c]
push ecx
push ebx
push edi
call dword [eax + 0x274]
mov esi, eax
mov edx, dword [esp + 0x18]
push edx
call sym.edb500x.dll_FreeUpdateBlk
push ebx
call fcn.0226affd
add esp, 4
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
js 0x2221b82
mov edi, dword [esp + 0x44]
xor ebx, ebx
jmp 0x22218f2
push 5
call fcn.022015d0
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0226affd
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret