Function at 0x100dfdc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x140], 0xffffffff
mov dword [ebp - 4], 0
jne 0x100dfde3
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
lea edi, [esi + 0x144]
push edi
call fcn.100dfbb0
mov ecx, dword [esi + 0x140]
push edi
lea eax, [ebp - 4]
push eax
push 0x20
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100dfe18
pop edi
mov eax, 0x1e
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
shl eax, 0xa
cdq
push ebx
mov dword [ebp - 8], edx
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0xc], eax
xor eax, eax
xor ebx, ebx
add edx, dword [esi + 0x18]
mov ecx, esi
adc eax, ebx
add edx, 0x20
adc eax, ebx
push eax
mov eax, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 8]
push edx
push eax
call fcn.100dfbe0
push edx
mov ebx, eax
push ebx
push edi
mov ecx, esi
mov dword [ebp - 0x10], edx
call fcn.100dfbb0
mov eax, dword [esi + 0x140]
push edi
lea ecx, [ebp - 4]
push ecx
push 0x18
lea edx, [esi + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100dffa7
mov ecx, dword [esi + 0x30]
mov eax, dword [ebp - 8]
xor edx, edx
add ecx, ebx
adc edx, dword [ebp - 0x10]
add ecx, 0x18
adc edx, 0
push edx
push ecx
mov ecx, dword [ebp - 0xc]
push eax
push ecx
mov ecx, esi
call fcn.100dfbe0
push edx
mov ebx, eax
push ebx
push edi
mov ecx, esi
mov dword [ebp - 0x10], edx
call fcn.100dfbb0
mov ecx, dword [esi + 0x140]
push edi
lea edx, [ebp - 4]
push edx
push 0xf8
lea eax, [esi + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100dffa7
mov eax, dword [esi + 0x114]
cmp eax, 0xf4240
jae 0x100dfff0
cmp dword [esi + 0x10c], 0xf4240
jae 0x100dfff0
cmp dword [esi + 0x108], 0x10000000
jae 0x100dfff0
test eax, eax
je 0x100dff4a
push eax
call fcn.10203b14
add esp, 4
mov dword [esi + 0x130], eax
mov eax, dword [ebp - 0x10]
mov edx, ebx
add edx, 0xf8
adc eax, 0
push eax
push edx
push edi
mov ecx, esi
call fcn.100dfbb0
mov edx, dword [esi + 0x114]
mov eax, dword [esi + 0x130]
push edi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0x140]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100dffa7
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x100dffb4
push eax
call fcn.10203b14
mov edx, dword [esi + 0x114]
add esp, 4
mov dword [esi + 0x134], eax
xor eax, eax
add edx, ebx
adc eax, dword [ebp - 0x10]
add edx, 0xf8
adc eax, 0
push eax
push edx
push edi
mov ecx, esi
call fcn.100dfbb0
mov edx, dword [esi + 0x10c]
mov eax, dword [esi + 0x134]
push edi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0x140]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100dffb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x114]
xor eax, eax
xor edi, edi
add edx, dword [esi + 0x10c]
mov ecx, esi
adc eax, edi
add edx, ebx
adc eax, dword [ebp - 0x10]
add edx, 0xf8
adc eax, edi
push eax
mov eax, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 8]
push edx
push eax
call fcn.100dfbe0
mov dword [esi + 0x138], eax
mov dword [esi + 0x13c], edx
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret