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

Disassembly:
sub esp, 0x7c
push edi
lea eax, [esp + 0x24]
mov edi, ecx
push eax
call fcn.10059140
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10051876
mov eax, dword [esp + 0x84]
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
add esp, 0x7c
ret 0x34
push ebp
mov ebp, dword [sym.imp.mozglue.dll_free]
push esi
mov esi, dword [esp + 0x34]
test esi, esi
je 0x100518d0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x100518b9
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x100518af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10051965
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 ebp
add esp, 4
mov eax, dword [edi]
lea edx, [esp + 0x70]
mov ecx, dword [esp + 0x90]
push edx
push ecx
mov esi, dword [eax + 0x980]
mov eax, dword [ecx]
call dword [eax + 0x20]
push dword [esp + 0x70]
call fcn.100940b0
add esp, 4
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
push ecx
xor ecx, ecx
cmp dword [esp + 0x78], 8
sete cl
cmp dword [eax + 0x1c], 0x1404
push ecx
push dword [esp + 0xc4]
sete al
mov ecx, edi
push dword [esp + 0xc4]
movzx eax, al
push eax
push dword [esp + 0xc0]
lea eax, [esp + 0x44]
push eax
call fcn.10054e20
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x1005196b
mov eax, dword [esp + 0x8c]
pop esi
pop ebp
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
add esp, 0x7c
ret 0x34
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
mov ebx, dword [esp + 0x38]
test ebx, ebx
je 0x100519ba
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x100519a3
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x10051999
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10051a0d
mov eax, edx
push ecx
push eax
call fcn.10174919
add esp, 8
push ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
call ebp
add esp, 4
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push ebp
push eax
mov ecx, edi
call fcn.10057920
mov eax, dword [esi]
lea ecx, [esp + 0x40]
push ecx
push 0
push 4
push 0
push dword [edi + 0x18]
lea ebx, [edi + 0x18]
push esi
call dword [eax + 0x38]
test eax, eax
jns 0x10051a13
mov esi, dword [esp + 0x90]
push eax
push str.Failed_to_map_internal_vertex_buffer_for_texture_copy__HRESULT:_0x_X.
push 0x505
push esi
call fcn.101314c0
add esp, 0x10
mov eax, esi
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x7c
ret 0x34
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea eax, [esp + 0x28]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
push eax
push dword [esp + 0x4c]
push dword [esp + 0xb8]
push dword [esp + 0xb8]
push dword [esp + 0xb4]
push dword [esp + 0xb4]
call dword [esp + 0x78]
mov eax, dword [esi]
add esp, 0x20
push 0
push dword [ebx]
push esi
call dword [eax + 0x3c]
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
push ecx
push ebx
push 1
push 0
push esi
call dword [eax + 0x48]
cmp byte [esp + 0xb8], 0
je 0x10051ab0
mov eax, dword [edi]
lea ecx, [edi + 0xd8]
push dword [eax + 0x950]
call fcn.10099a60
mov ecx, dword [esi]
push 0xfffffff
push 0
push eax
push esi
call dword [ecx + 0x8c]
jmp 0x10051ac2
mov eax, dword [esi]
push 0xfffffff
push 0
push 0
push esi
call dword [eax + 0x8c]
mov eax, dword [esi]
push 0xffffffffffffffff
push 0
push esi
call dword [eax + 0x90]
mov edx, dword [esp + 0xac]
test edx, edx
je 0x10051b0e
mov ecx, dword [edx]
mov eax, dword [edx + 8]
add eax, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0xc]
add eax, ecx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
push ecx
push 1
push esi
call dword [eax + 0xb4]
push dword [edi + 0x24]
jmp 0x10051b11
push dword [edi + 0x28]
mov eax, dword [esi]
push esi
call dword [eax + 0xac]
push dword [esp + 0x4c]
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
push dword [esp + 0x28]
mov eax, dword [esi]
push esi
call dword [eax + 0x60]
mov eax, dword [esi]
push 0
push 0
push dword [esp + 0x58]
push esi
call dword [eax + 0x2c]
mov eax, dword [esi]
push 0
push 0
push dword [ebp + 4]
push esi
call dword [eax + 0x24]
mov eax, dword [esi]
push 0
push 0
push dword [esp + 0x5c]
push esi
call dword [eax + 0x5c]
mov ebx, dword [edi]
push 0
push 0
add ebx, 0x410
push 0
mov ecx, ebx
call fcn.100842f0
push 0
push dword [esp + 0xa4]
mov ecx, ebx
call fcn.10083f20
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
movd xmm0, dword [eax]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x3f800000
push 1
push esi
movss dword [esp + 0x70], xmm0
movd xmm0, dword [eax + 4]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x74], xmm0
mov eax, dword [esi]
call dword [eax + 0xb0]
push dword [esp + 0x94]
mov ecx, ebx
push 0
push 0
call fcn.100842f0
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x18], 0
sub eax, 0x2600
je 0x10051c26
sub eax, 1
je 0x10051c21
mov esi, dword [esp + 0x90]
push str.Internal_error__unknown_blit_filter_mode.
push 0x505
push esi
call fcn.101314c0
add esp, 0xc
mov eax, esi
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x7c
ret 0x34
mov eax, dword [edi + 0x20]
jmp 0x10051c29
mov eax, dword [edi + 0x1c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push ecx
push 1
push 0
push esi
call dword [eax + 0x28]
mov eax, dword [esi]
push 0
push dword [esp + 0x20]
push esi
call dword [eax + 0x34]
push 0
push 0
push 0
mov ecx, ebx
call fcn.100842f0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
push ecx
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0
mov eax, dword [esi]
push ecx
push 1
push 0
push esi
call dword [eax + 0x48]
mov ecx, dword [edi]
call fcn.10081580
mov eax, dword [esp + 0x90]
pop ebx
pop esi
pop ebp
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
pop edi
add esp, 0x7c
ret 0x34