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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push dword [esi + 0x134]
xor ebx, ebx
mov byte [ebp - 1], bl
call fcn.00431936
push dword [esi + 0x130]
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
call fcn.00431936
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x124], ebx
je 0x422622
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 8], edi
je 0x422621
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx]
push edi
call dword [eax + 8]
test al, al
je 0x422618
mov edx, dword [esi + 0x60]
sub edx, 0x40
lea ecx, [esi + 0x64]
mov eax, dword [ecx]
push edx
push edi
call dword [eax + 4]
test al, al
je 0x422618
lea ecx, [esi + 0x70]
mov eax, dword [ecx]
push edi
call dword [eax + 8]
test al, al
je 0x422618
push dword [esi + 0x104]
lea edi, [esi + 0x108]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x44]
test al, al
je 0x422618
push edi
push dword [esi + 0x7c]
lea ecx, [esi + 0x114]
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
test al, al
je 0x422618
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x60]
add eax, 3
lea eax, [eax + eax*4]
add eax, dword [esi + 0x104]
lea ecx, [ecx + eax*8]
mov eax, dword [esi + 0x118]
cmp eax, ebx
je 0x42258e
mov edx, dword [eax + 0x2c]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x2c]
cmp edx, dword [ebp - 8]
jae 0x42251b
mov dword [ebp - 8], edx
jmp 0x42251e
mov edx, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x42250e
cmp edx, ebx
jbe 0x42258e
cmp edx, ecx
jbe 0x42258e
sub edx, ecx
je 0x42258e
push ebx
push ebx
push ecx
push dword [ebp + 8]
mov dword [esi + 0x12c], ecx
mov dword [esi + 0x128], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42258b
push dword [esi + 0x128]
call fcn.00432882
pop ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [esi + 0x128]
mov dword [esi + 0x134], eax
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42258b
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x128]
mov byte [ebp - 1], 1
je 0x42258e
mov byte [ebp - 1], bl
push dword [ebp + 8]
lea ecx, [esi + 0x114]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
je 0x422618
mov edi, dword [esi + 0x110]
jmp 0x4225ba
mov eax, dword [edi]
push esi
push dword [ebp + 8]
mov ecx, edi
call dword [eax + 4]
test al, al
je 0x42262b
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x4225a8
push 1
push ebx
push ebx
push dword [ebp + 8]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x422618
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [esi + 0x124], ecx
je 0x422614
push ecx
call fcn.00432882
pop ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [esi + 0x124]
mov dword [esi + 0x130], eax
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42262b
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x124]
jne 0x42262b
mov byte [ebp - 1], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 4
mov byte [ebp - 1], bl
jmp 0x422618