Function at 0x416d74
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.0041e9db
push dword [esi + 0x130]
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
call fcn.0041e9db
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x124], ebx
je 0x416f9e
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 0x416f9d
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 0x416f94
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 0x416f94
lea ecx, [esi + 0x70]
mov eax, dword [ecx]
push edi
call dword [eax + 8]
test al, al
je 0x416f94
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 0x416f94
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 0x416f94
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 0x416f0a
mov edx, dword [eax + 0x2c]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x2c]
cmp edx, dword [ebp - 8]
jae 0x416e97
mov dword [ebp - 8], edx
jmp 0x416e9a
mov edx, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x416e8a
cmp edx, ebx
jbe 0x416f0a
cmp edx, ecx
jbe 0x416f0a
sub edx, ecx
je 0x416f0a
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 0x416f07
push dword [esi + 0x128]
call fcn.0041ddb2
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 0x416f07
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x128]
mov byte [ebp - 1], 1
je 0x416f0a
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 0x416f94
mov edi, dword [esi + 0x110]
jmp 0x416f36
mov eax, dword [edi]
push esi
push dword [ebp + 8]
mov ecx, edi
call dword [eax + 4]
test al, al
je 0x416fa7
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x416f24
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 0x416f94
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [esi + 0x124], ecx
je 0x416f90
push ecx
call fcn.0041ddb2
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 0x416fa7
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x124]
jne 0x416fa7
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 0x416f94