Function at 0x517940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [eax + 0x10]
push edi
mov ebx, 0x84
mov eax, esi
mov dword [ebp - 4], esi
call fcn.004d1410
mov edi, eax
push ebx
test edi, edi
jne 0x51797b
push 1
push str.calloc___d_x__d_bytes__failed
push 1
push 0x7a
push str..mupdf_source_fitzmemory.c
push esi
call fcn.004b35a0
push 0
push edi
call fcn.0065b340
mov eax, dword [esi + 0xc]
mov ebx, edi
add esp, 0xc
mov dword [ebp - 8], ebx
call fcn.004b3520
test eax, eax
je 0x517b53
mov esi, dword [esi + 0xc]
mov eax, dword [esi]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [esi + ecx*4 + 8]
push 0
push edx
call fcn.0065e2c0
mov esi, dword [ebp - 4]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edi, edx
shl edi, 4
add edi, edx
add esp, 8
mov dword [ecx + edi*4 + 4], eax
test eax, eax
jne 0x517b50
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0
mov ebx, 0x2c
mov eax, esi
mov dword [edi + 0x20], ecx
call fcn.004d1410
mov ebx, eax
push 0x2c
test ebx, ebx
je 0x517965
push 0
push ebx
call fcn.0065b340
fldz
fst dword [ebx + 0x18]
xor eax, eax
fst dword [ebx + 0x1c]
mov dword [ebx + 0x28], eax
fst dword [ebx + 0x20]
add esp, 0xc
fstp dword [ebx + 0x24]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x24], eax
mov edx, dword [0x7b7da4]
mov dword [edi + 0x38], edx
mov ecx, dword [0x7b7da8]
mov dword [edi + 0x3c], ecx
mov edx, dword [0x7b7dac]
mov dword [edi + 0x40], edx
mov ecx, dword [0x7b7db0]
mov dword [edi + 0x44], ecx
mov edx, dword [0x7b7db4]
mov dword [edi + 0x48], edx
mov ecx, dword [0x7b7db8]
mov dword [edi + 0x4c], ecx
mov edx, dword [0x7b7da4]
mov dword [edi + 0x50], edx
mov ecx, dword [0x7b7da8]
mov dword [edi + 0x54], ecx
mov edx, dword [0x7b7dac]
mov dword [edi + 0x58], edx
mov ecx, dword [0x7b7db0]
mov dword [edi + 0x5c], ecx
mov edx, dword [0x7b7db4]
mov dword [edi + 0x60], edx
mov ecx, dword [0x7b7db8]
mov dword [edi + 0x64], ecx
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], 1
mov ebx, 0x3f00
mov eax, esi
mov dword [edi + 0x74], 0x40
call fcn.004d1410
test eax, eax
jne 0x517acd
push 0xfc
push 0x40
push str.malloc_of_array___d_x__d_bytes__failed
push 1
push 0x57
jmp 0x517970
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp - 4]
mov dword [edi + 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0xc], edx
mov esi, dword [edi + 0x70]
call fcn.00513e40
mov esi, dword [ebp + 0x18]
xor eax, eax
cmp esi, eax
je 0x517b41
mov ebx, dword [edi + 0x70]
mov eax, dword [ebp - 4]
push ebx
call fcn.00511ca0
mov eax, dword [ebp - 4]
add esp, 4
mov ecx, 0x3f
mov edi, ebx
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00511ba0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x70]
mov edi, dword [ebp - 8]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [ecx + 0x14]
add esp, 4
mov dword [eax + 0x14], ecx
xor eax, eax
mov esi, dword [ebp - 4]
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], eax
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
add edx, ecx
mov edx, dword [eax + edx*4 + 4]
dec ecx
mov dword [eax], ecx
cmp edx, 1
jle 0x517ba5
mov edi, dword [ebx + 0x14]
mov eax, esi
call fcn.004bf1e0
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push 0
push ecx
call edx
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
push ebx
push ecx
call edx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
push 0
push ecx
call edx
mov ecx, dword [esi + 0xc]
add esp, 0x18
call fcn.004b34d0
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], 0x8940d0
pop ebx
mov esp, ebp
pop ebp
ret