Function at 0x439770
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4fbee0
push fcn.00482440
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x50a124]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xf4]
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
and al, 3
cmp al, 1
jne 0x4397e6
mov dword [esi + 0xf0], 0x3ec
push 0x3ec
call fcn.0042bce0
add esp, 4
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 4], 0
je 0x439815
mov dword [esi + 0xf0], 1
push 1
call fcn.0042bce0
add esp, 4
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x110]
mov dword [ebp - 0x24], edx
mov ecx, dword [esi + 0x114]
mov dword [ebp - 0x1c], ecx
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
jne 0x43983e
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], eax
jmp 0x439840
mov eax, ecx
cmp eax, dword [ebx + 0x14]
jg 0x439a1a
jl 0x439854
cmp edx, dword [ebx + 0x10]
jae 0x439a1a
xor edi, edi
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x439873
mov eax, dword [esi + 0x10c]
add edi, dword [eax]
lea eax, [eax + 8]
sub ecx, 1
jne 0x439866
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x10]
sub ecx, edx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebx + 0x14]
sbb ecx, eax
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], ecx
jl 0x439898
jg 0x439893
cmp edi, dword [ebp - 0x2c]
jb 0x439898
mov edi, dword [ebx + 0x10]
sub edi, edx
test edi, edi
je 0x439a1a
mov ecx, edi
mov dword [ebp - 0x20], 0
add ecx, edx
mov dword [ebp - 0x34], ecx
adc dword [ebp - 0x20], eax
push 0
push dword [0x795e70]
push eax
push edx
call fcn.00480190
mov ecx, eax
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x24]
sub edx, ecx
mov eax, dword [ebp - 0x1c]
sbb eax, 0
add ecx, edi
push ecx
push edx
push eax
push 4
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x439911
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf0], eax
push eax
call fcn.0042bce0
add esp, 4
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
cmp ecx, dword [esi + 0x108]
jae 0x4399c8
cmp ebx, edi
jae 0x4399c8
mov eax, dword [esi + 0x10c]
lea edx, [eax + ecx*8]
mov eax, edi
sub eax, ebx
mov ecx, dword [edx]
cmp ecx, eax
cmovae ecx, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
push ecx
mov eax, dword [ebp - 0x1c]
add eax, ebx
add eax, dword [ebp - 0x2c]
push eax
push dword [edx + 4]
call fcn.00481bd0
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
add ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
inc ecx
jmp 0x439915
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x4398e7
mov eax, dword [esi + 0x110]
and eax, dword [esi + 0x114]
cmp eax, 0xffffffff
jne 0x439a05
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x1c], ecx
push eax
push dword [ebp - 0x38]
call fcn.0043b560
add esp, 8
mov dword [esi + 0x48], edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x48], 0
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret