Function at 0x496bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac7d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
je 0x496ddf
mov eax, dword [esi + 0x94]
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi + 0x90]
mov ebx, dword [ebp + 0x10]
cmp eax, edi
jg 0x496de5
jl 0x496c29
cmp ecx, ebx
jae 0x496de5
mov edx, dword [ebp + 0xc]
cmp edx, 0x10000
jae 0x496c43
mov edx, dword [esi + 0x7c]
mov dword [ebp - 0x18], 0x10000
mov dword [ebp - 0x1c], edx
jmp 0x496c4c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edi
mov edi, ebx
mov ebx, dword [ebp + 0x14]
sub edi, ecx
sbb ebx, eax
xor eax, eax
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
push edi
call sub.ntdll.dll__alldiv
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
xor eax, eax
push eax
push ecx
push ebx
push edi
call sub.ntdll.dll__allrem
mov edx, dword [esi + 0x94]
mov ecx, dword [esi + 8]
mov edi, eax
mov eax, dword [esi + 0x90]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x496cbd
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
push edx
push eax
push str.SetFilePointerEx__I64d__
push 0
push 0x4ac
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a3d40
add esp, 0x18
test edi, edi
je 0x496d3f
mov ebx, dword [ebp - 0x1c]
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x14]
push 0
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x496cf2
push 0x53c388
push eax
push 0x4b0
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a3d40
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x496d10
push 0x53c37c
push 1
push 0x4b1
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a44d0
add esp, 0x10
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x24]
push eax
push ebx
call fcn.0049ada0
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0x90]
add edx, ecx
mov dword [esi + 0x90], edx
mov eax, dword [esi + 0x94]
adc eax, 0
mov dword [esi + 0x94], eax
jmp 0x496d42
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp edx, eax
jae 0x496e15
mov edi, dword [ebp - 0x18]
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x14]
push 0
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x496d88
push 0x53c388
push eax
push 0x4ba
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a3d40
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x496da6
push 0x53c37c
push 1
push 0x4bb
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a44d0
add esp, 0x10
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x24]
push edx
push ebx
call fcn.0049ada0
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x90]
add edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x90], edx
mov ecx, dword [esi + 0x94]
adc ecx, 0
inc eax
mov dword [esi + 0x94], ecx
mov dword [ebp - 0x1c], eax
jmp 0x496d49
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi + 8]
push 0
push 0
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x496e18
push edi
push ebx
push str.SetFilePointerEx__I64d__
push eax
push 0x4c2
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a3d40
add esp, 0x18
jmp 0x496e18
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x14]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x496e4c
push 0x53c388
push eax
push 0x4c7
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a3d40
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x496e6a
push 0x53c37c
push 1
push 0x4c8
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a44d0
add esp, 0x10
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x496ecb
mov edx, dword [ebp + 0x14]
mov ecx, edi
xor eax, eax
add ecx, ebx
adc eax, edx
mov edx, dword [esi + 0x94]
cmp edx, eax
jg 0x496ecb
jl 0x496e92
mov eax, dword [esi + 0x90]
cmp eax, ecx
jae 0x496ecb
mov eax, dword [esi + 0x90]
mov ecx, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 0x14], eax
sub edi, eax
add eax, ecx
push edi
push eax
lea ecx, [esi + 0x24]
call fcn.0049ada0
mov ecx, dword [esi + 0x90]
add ecx, edi
mov dword [esi + 0x90], ecx
mov eax, dword [esi + 0x94]
adc eax, 0
mov dword [esi + 0x94], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14