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

Disassembly:
sub esp, 0x6c
mov ecx, dword [esp + 0x78]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0xc], 0
push eax
call fcn.10098920
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1009854e
mov eax, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
add esp, 0x6c
ret
push ebp
mov ebp, dword [esp + 0x78]
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 8], 0
push eax
mov ecx, ebp
call fcn.10098920
push eax
lea ecx, [esp + 0x1c]
call fcn.10001760
lea ecx, [esp + 0x2c]
call fcn.100016b0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x100985a0
mov eax, dword [esp + 0x74]
pop ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
add esp, 0x6c
ret
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x5c]
push ecx
push edi
mov eax, dword [edi]
call dword [eax + 0x30]
test eax, eax
jns 0x100985d3
push eax
push str.Failed_to_query_the_source_surface_description_for_mipmap_generation__result:_0x_X.
lea eax, [esp + 0x38]
push 0x505
push eax
call fcn.101314c0
add esp, 0x10
jmp 0x100986a2
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x30]
test eax, eax
jns 0x100985ee
push eax
push str.Failed_to_query_the_destination_surface_description_for_mipmap_generation__result:_0x_X.
jmp 0x100985bc
push dword [esp + 0x3c]
call fcn.1009e180
mov ecx, dword [esi]
add esp, 4
mov dword [esp + 0x18], eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
movlpd qword [esp + 0x1c], xmm0
push 0x10
push 0
push eax
push esi
call dword [ecx + 0x34]
test eax, eax
jns 0x10098622
push eax
push str.Failed_to_lock_the_source_surface_for_mipmap_generation__result:_0x_X.
jmp 0x100985bc
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push 0
push 0
push ecx
xorps xmm0, xmm0
push edi
movlpd qword [esp + 0x20], xmm0
call dword [eax + 0x34]
mov ebx, eax
test ebx, ebx
jns 0x10098651
mov ecx, dword [esi]
push esi
call dword [ecx + 0x38]
push ebx
push str.Failed_to_lock_the_destination_surface_for_mipmap_generation__result:_0x_X.
jmp 0x100985bc
mov eax, dword [esp + 0x18]
push 0
push dword [esp + 0x14]
push dword [esp + 0x1c]
mov eax, dword [eax + 0x28]
push 0
push dword [esp + 0x2c]
push dword [esp + 0x34]
mov eax, dword [eax + 0xc]
push 1
push dword [esp + 0x74]
push dword [esp + 0x74]
call eax
mov eax, dword [edi]
add esp, 0x24
push edi
call dword [eax + 0x38]
mov eax, dword [esi]
push esi
call dword [eax + 0x38]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
call fcn.10001760
mov esi, dword [esp + 0x38]
mov ebx, dword [sym.imp.mozglue.dll_free]
test esi, esi
je 0x10098704
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x100986ed
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x100986e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009872d
mov eax, edx
push ecx
push eax
call fcn.10174919
add esp, 8
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call ebx
add esp, 4
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x80]
test eax, eax
je 0x10098733
mov ecx, dword [esp + 0x28]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi], eax
mov eax, esi
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
add esp, 0x6c
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [esp + 0x2c]
mov byte [ebp + 0x1c], 1
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test edi, edi
je 0x10098799
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x10098782
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x10098778
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009872d
mov eax, edx
push ecx
push eax
call fcn.10174919
add esp, 8
push edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call ebx
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0x6c
ret