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

Disassembly:
sub esp, 0x80
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa8]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x40], eax
movzx eax, byte [ebp + 0x25]
push edi
push eax
mov dword [esp + 0x34], esi
call fcn.104f9cf0
movzx ebx, word [esi + 4]
movzx edi, word [esi + 6]
movzx eax, al
imul ebx, eax
mov dword [esp + 0x20], eax
movzx eax, byte [ebp + 0x25]
push eax
shr ebx, 3
imul edi, ebx
mov dword [esp + 0x20], edi
call fcn.104fddb0
add esp, 8
test al, al
je 0x104ecd28
movzx eax, byte [ebp + 0x25]
push eax
call fcn.104f9d00
movzx ebx, word [esi + 4]
mov edi, eax
xor edx, edx
movzx esi, word [esi + 6]
mov eax, ebx
add esp, 4
movzx ecx, byte [edi + 1]
div ecx
movzx ecx, byte [edi + 3]
xor edx, edx
imul eax, ecx
movzx ecx, byte [edi + 2]
mov edi, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
mov eax, esi
div ecx
mov ecx, eax
mov eax, ebx
imul ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
jmp 0x104ecd3c
movzx eax, word [esi + 4]
mov dword [esp + 0x2c], eax
movzx eax, word [esi + 6]
mov ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, edi
movzx edi, ax
xorps xmm0, xmm0
mov ax, word [esp + 0xac]
mov dword [esp + 0x14], 0xffff
cmp word [esp + 0x14], ax
movzx edx, ax
mov dword [esp + 0x3c], edx
cmovne ebx, edx
movzx edx, word [esp + 0xa8]
mov dword [esp + 0x40], edi
movlpd qword [esp + 0x54], xmm0
jne 0x104ecd9b
mov eax, dword [esp + 0x28]
mov edi, edx
imul edi, ecx
mov cl, byte [ebp + 0x25]
mov byte [esp + 0x13], cl
mov cl, byte [ebp + 0x24]
movzx eax, ax
mov byte [esp + 0x12], cl
mov ecx, eax
mov dword [esp + 0x5c], 0
jmp 0x104ecdd6
mov eax, dword [esp + 0x40]
movzx ecx, ax
mov al, byte [ebp + 0x25]
movzx edi, di
imul edi, edx
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x13], al
mov al, byte [ebp + 0x24]
mov byte [esp + 0x12], al
imul edi, edx
lea eax, [edx*8]
xor edx, edx
div dword [esp + 0x1c]
movzx edx, word [esp + 0xa8]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x64], eax
movzx eax, byte [esp + 0x9c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], eax
movzx eax, word [esi]
mov dword [esp + 0x74], eax
movzx eax, word [esi + 2]
xor esi, esi
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2c]
movzx eax, ax
mov dword [esp + 0x80], eax
movzx eax, cx
mov cl, byte [esp + 0x12]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 1
mov eax, dword [eax]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x88], edx
mov dword [esp + 0x14], eax
cmp byte [esp + 0x13], cl
je 0x104ecee2
push 0x1836
lea eax, [esp + 0x48]
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_renderer_vk.cpp
push eax
call fcn.105096b0
mov esi, dword [0x10ac2e7c]
add esp, 0xc
push dword [eax + 4]
mov ecx, dword [esi]
push dword [eax]
push 0
push dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov ecx, esi
push 0
call edx
mov edx, dword [esp + 0x30]
mov esi, eax
movzx ecx, byte [ebp + 0x24]
push ecx
push ebx
movzx ecx, word [edx + 6]
push ecx
movzx ecx, word [edx + 4]
push ecx
push dword [esp + 0x24]
push esi
push dword [0x10ac2e7c]
call fcn.104fa380
mov edx, dword [ebp + 0x10]
mov ebx, 1
mov ecx, dword [esp + 0x38]
add esp, 0x1c
mov eax, dword [ebp + 0x14]
shr edx, cl
cmp edx, ebx
mov dword [esp + 0x14], esi
cmovb edx, ebx
shr eax, cl
cmp eax, ebx
mov dword [esp + 0x80], edx
cmovb eax, ebx
mov dword [esp + 0x84], eax
mov eax, esi
mov ecx, dword [0x10b23318]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x38]
movlpd qword [esp + 0x24], xmm0
push eax
lea eax, [esp + 0x28]
movlpd qword [esp + 0x3c], xmm0
push eax
push 6
push edi
call fcn.104b03a0
mov eax, dword [ebp + 0x30]
cmp eax, 2
jne 0x104ecf20
movzx eax, word [esp + 0xa4]
mov dword [esp + 0x7c], eax
jmp 0x104ecf4e
cmp eax, 3
je 0x104ecf34
cmp eax, 6
je 0x104ecf34
movzx eax, word [esp + 0xa4]
jmp 0x104ecf4a
movzx eax, word [esp + 0xa4]
lea ecx, [eax + eax*2]
movzx eax, byte [esp + 0x98]
lea eax, [eax + ecx*2]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x54]
mov ecx, ebp
push eax
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x5c]
call fcn.104a7a90
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
test ecx, ecx
jne 0x104ecf78
test eax, eax
je 0x104ecf96
push 9
push eax
push ecx
mov ecx, dword [0x10b23318]
lea ecx, [ecx + 0xe50]
call fcn.104d5120
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
test ecx, ecx
jne 0x104ecfa6
test eax, eax
je 0x104ecfc4
push 8
push eax
push ecx
mov ecx, dword [0x10b23318]
lea ecx, [ecx + 0xe50]
call fcn.104d5120
xorps xmm0, xmm0
movlpd qword [esp + 0x34], xmm0
test esi, esi
je 0x104ecff4
push 0x185b
lea eax, [esp + 0x50]
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_renderer_vk.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 esi
call dword [edx + 4]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x80
ret 0x20