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

Disassembly:
sub esp, 0x16c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x174]
mov eax, 0x400
push ebp
push esi
mov edx, dword [ebx + 0x5c]
mov esi, dword [esp + 0x188]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
push edi
cmp edx, eax
je 0x104ec4f5
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x40], edx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
push 1
push ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x50], 0x400
call dword [eax + 0x68]
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x28], eax
mov dword [ebx + 0x5c], 0x400
movzx eax, byte [ebx + 0x7c]
push eax
call fcn.104f9cf0
movzx ebp, word [esi + 4]
movzx eax, al
imul ebp, eax
movzx eax, byte [ebx + 0x7c]
push eax
shr ebp, 3
mov dword [esp + 0x1c], ebp
call fcn.104fddb0
add esp, 8
test al, al
je 0x104ec557
movzx eax, byte [ebx + 0x7c]
push eax
call fcn.104f9d00
mov esi, eax
xor edx, edx
mov eax, dword [esp + 0x20]
add esp, 4
movzx ecx, byte [esi + 1]
movzx edi, word [eax + 4]
mov eax, edi
div ecx
movzx ecx, byte [esi + 3]
mov edx, edi
mov esi, dword [esp + 0x1c]
mov ebp, eax
imul ebp, ecx
mov dword [esp + 0x14], ebp
jmp 0x104ec55b
movzx edx, word [esi + 4]
movzx ecx, word [esp + 0x198]
mov edi, 0xffff
cmp di, word [esp + 0x198]
mov dword [esp + 0xd0], 0
cmovne ebp, ecx
mov dword [esp + 0xd4], 0
movzx ecx, word [esi + 6]
mov eax, ecx
mov dword [esp + 0xe0], ecx
imul eax, dword [esp + 0x14]
movzx ecx, word [esp + 0x190]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], eax
mov al, byte [ebx + 0x7c]
mov byte [esp + 0x13], al
movzx eax, dx
xor edx, edx
mov dword [esp + 0xdc], eax
mov al, byte [ebx + 0x7a]
lea edi, [edx + 1]
cmp al, 1
jne 0x104ec5e2
movzx eax, word [esp + 0x194]
add eax, ecx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xe4], eax
jmp 0x104ec607
mov edx, edi
mov dword [esp + 0xd8], 0
cmp al, 2
mov dword [esp + 0xe4], 1
mov edi, 6
cmove edx, edi
imul edx, ecx
movzx ecx, byte [esp + 0x184]
movzx eax, byte [ebx + 0x7d]
add ecx, edx
movzx edi, byte [esp + 0x188]
imul ecx, eax
mov al, byte [ebx + 0x7b]
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], 0
add ecx, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
mov edi, dword [edi]
cmp byte [esp + 0x13], al
je 0x104ec6cb
push 0x1589
lea eax, [esp + 0xa4]
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_renderer_d3d12.cpp
push eax
call fcn.105096b0
mov ecx, dword [0x10ac2e7c]
add esp, 0xc
push dword [eax + 4]
mov edx, dword [ecx]
push dword [eax]
push 0
push dword [esp + 0x54]
push 0
call dword [edx + 4]
movzx ecx, byte [ebx + 0x7b]
push ecx
movzx ecx, word [esi + 6]
push ebp
push ecx
movzx ecx, word [esi + 4]
push ecx
push edi
push eax
push dword [0x10ac2e7c]
mov dword [esp + 0x30], eax
call fcn.104fa380
mov eax, dword [ebx + 0x68]
add esp, 0x1c
mov ecx, dword [esp + 0x24]
mov edx, 1
mov edi, dword [esp + 0x14]
shr eax, cl
cmp eax, 1
cmovb eax, edx
mov dword [esp + 0xdc], eax
mov eax, dword [ebx + 0x6c]
shr eax, cl
cmp eax, edx
cmovb eax, edx
mov dword [esp + 0xe0], eax
mov ecx, dword [ebx + 0x50]
lea edx, [esp + 0x140]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x28]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0xe8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0xf8], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esp + 0x108], xmm0
movq xmm0, qword [eax + 0x30]
movzx eax, word [esi + 4]
cdq
mov dword [esp + 0xfc], edx
lea edx, [esp + 0x60]
push edx
push 0
mov dword [esp + 0x100], eax
lea edx, [esp + 0x28]
movzx eax, word [esi + 6]
push edx
mov dword [esp + 0x10c], eax
lea edx, [esp + 0x12c]
mov eax, dword [0x10b03290]
push edx
push 0
push 0
movq qword [esp + 0x130], xmm0
lea edx, [esp + 0x100]
mov eax, dword [eax + 0x2dc]
push 1
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x98]
mov eax, dword [esp + 0x138]
push 0
push dword [esp + 0x68]
mov dword [esp + 0x20], eax
push dword [esp + 0x68]
mov eax, dword [0x10b03290]
push 2
push dword [eax + 0x2dc]
call fcn.104af120
add esp, 0x14
mov dword [esp + 0x68], 0
lea edx, [esp + 0x50]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x24], eax
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x6c]
push edx
push 0
push eax
call dword [ecx + 0x20]
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x104ec7e9
mov ebx, dword [esp + 0x4c]
xor esi, esi
mov eax, dword [esp + 0x50]
push ebx
add eax, esi
push edi
push eax
call fcn.1050a090
add esi, dword [esp + 0x24]
add esp, 0xc
add edi, ebx
sub ebp, 1
jne 0x104ec7c1
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x104ec821
push 0x15b2
lea eax, [esp + 0x5c]
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_renderer_d3d12.cpp
push eax
call fcn.105096b0
mov ecx, dword [0x10ac2e7c]
add esp, 0xc
push dword [eax + 4]
mov edx, dword [ecx]
push dword [eax]
push 0
push 0
push edi
call dword [edx + 4]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x70]
imul eax, ebp
mov ebp, dword [esp + 0x24]
push ecx
mov dword [esp + 0x74], 0
push 0
mov dword [esp + 0x7c], eax
mov eax, dword [ebp]
push ebp
call dword [eax + 0x24]
mov eax, dword [ebx + 0x50]
xorps xmm0, xmm0
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x54]
movups xmmword [esp + 0x80], xmm0
mov ecx, dword [edi]
mov dword [esp + 0x80], eax
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0xac]
mov dword [esp + 0x80], 0
push eax
movzx eax, word [esi + 2]
push 0
push eax
movzx eax, word [esi]
movups xmmword [esp + 0xa0], xmm0
push eax
movups xmm0, xmmword [esp + 0x134]
lea eax, [esp + 0x8c]
mov dword [esp + 0xbc], ebp
push eax
movups xmmword [esp + 0xc8], xmm0
push edi
movups xmm0, xmmword [esp + 0x14c]
mov dword [esp + 0xc8], 1
movups xmmword [esp + 0xdc], xmm0
call dword [ecx + 0x40]
mov ecx, dword [ebx + 0x5c]
mov esi, dword [esp + 0x28]
cmp ecx, esi
je 0x104ec917
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
push 1
push edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x50], esi
call dword [eax + 0x68]
mov dword [ebx + 0x5c], esi
mov ecx, dword [0x10b03290]
add ecx, 0x7e80
mov eax, dword [ecx + 0x1820]
lea eax, [eax + eax*2]
lea eax, [eax + 0x307]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 4]
cmp dword [eax + 8], ecx
je 0x104ec949
test ecx, ecx
je 0x104ec943
mov dword [ecx], ebp
add dword [eax + 4], 4
jmp 0x104ec95b
push 1
push ecx
push eax
call fcn.10494cc0
add esp, 0xc
test eax, eax
je 0x104ec95b
mov dword [eax], ebp
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x16c
ret 0x20