Function at 0x2221ba0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x514
push ebx
push esi
mov esi, dword [esp + 0x520]
mov ebx, dword [esi + 0x34]
push edi
lea eax, [esp + 0x18]
push eax
push 0x20
lea ecx, [esi + 0x38]
push 0x8002
xor edi, edi
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
call fcn.022687b0
add esp, 0x10
cmp eax, 0xffffffff
mov dword [esi + 0x460], eax
jne 0x2221bf9
push 5
call fcn.022015d0
add esp, 4
pop edi
pop esi
mov eax, 0x494
pop ebx
add esp, 0x514
ret
push ebp
push edi
lea edx, [esp + 0x14]
push edx
push 0x2a0
lea ecx, [esp + 0x90]
push ecx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x31c]
push 0x40
push edx
call fcn.0226b127
mov ebp, eax
add esp, 8
cmp ebp, edi
mov dword [esp + 0x18], ebp
jne 0x2221c3e
mov ebx, 0x494
jmp 0x2221ea3
mov eax, dword [esp + 0x31c]
push 4
push eax
call fcn.0226b127
add esp, 8
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x2221c62
mov ebx, 0x494
jmp 0x2221e9a
mov ecx, dword [ebx + 0x864]
push ecx
lea edx, [esp + 0x328]
push edx
lea edi, [esi + 0x240]
push edi
push str..tlg
push 0x2277454
add ebx, 0x618
push ebx
call fcn.0225f370
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x2221cab
push 5
call fcn.022015d0
add esp, 4
mov ebx, 0x494
jmp 0x2221e8b
lea eax, [esp + 0x1c]
push eax
push 0x20
push 0x8102
push edi
call fcn.022687b0
add esp, 0x10
cmp eax, 0xffffffff
mov dword [esi + 0x464], eax
je 0x2221c97
mov ecx, dword [esi + 0x460]
push 0
push 0x2a0
push ecx
call fcn.02209fc0
mov edx, dword [esp + 0x328]
mov eax, dword [esi + 0x460]
shl edx, 6
push edx
push ebp
push eax
call fcn.02209f80
mov ecx, dword [esp + 0x334]
add esp, 0x18
xor eax, eax
test ecx, ecx
jle 0x2221d26
mov ecx, ebp
jmp 0x2221d10
mov edx, dword [esp + 0x14]
mov dword [edx + eax*4], ecx
mov edx, dword [esp + 0x31c]
inc eax
add ecx, 0x40
cmp eax, edx
jl 0x2221d10
mov ecx, dword [esp + 0xb8]
mov eax, dword [esi + 0x460]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push ecx
push eax
call ebp
cmp eax, 0xffffffff
jne 0x2221d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esp, [esp]
mov eax, dword [esi + 0x460]
push 1
push 0
push 0
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x2221d72
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x2221d72
or edi, edi
mov eax, dword [esi + 0x460]
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
push edx
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], edx
push 0x20
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2221e55
cmp dword [esp + 0x10], 0x20
jne 0x2221e55
mov eax, dword [esp + 0x24]
cmp eax, 0x10000000
je 0x2221de2
cmp eax, 0x20000000
je 0x2221de2
cmp eax, 0x30000000
jne 0x2221ec3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.0225ed50
mov ecx, dword [esp + 0x2c]
add esp, 8
cmp ecx, 0x10000000
je 0x2221e39
cmp ecx, 0x20000000
je 0x2221e2a
cmp ecx, 0x30000000
jne 0x2221d50
push edi
lea ecx, [esp + 0x28]
push ecx
push eax
push esi
call fcn.02221840
jmp 0x2221e46
push edi
lea edx, [esp + 0x28]
push edx
push eax
push esi
call fcn.022215f0
jmp 0x2221e46
push edi
lea ecx, [esp + 0x28]
push ecx
push eax
push esi
call fcn.02220970
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x2221d50
jmp 0x2221e65
push 5
call fcn.022015d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x2221e87
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x31c]
mov eax, dword [esi + 0x464]
push ecx
push edx
push eax
push esi
call fcn.022218a0
add esp, 0x10
mov ebx, 0x494
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0226affd
add esp, 4
xor edi, edi
push ebp
call fcn.0226affd
add esp, 4
mov edx, dword [esi + 0x460]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov dword [esi + 0x460], edi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x514
ret
mov eax, dword [esi + 0x460]
push 0
push 0
push edi
push eax
call ebp
cmp eax, 0xffffffff
jne 0x2221edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x460]
push 0x40
lea edx, [esp + 0x48]
push edx
push eax
call fcn.02209f80
add esp, 0xc
jmp 0x2221e87