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

Disassembly:
sub esp, 0xd0
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd8]
push ebp
push esi
mov esi, dword [esp + 0xdc]
mov ebp, ecx
push 0
push dword [eax + 4]
mov dword [esp + 0x64], eax
push dword [eax]
lea eax, [esp + 0x7c]
mov dword [esp + 0x70], ebp
push eax
mov dword [esp + 0x38], esi
call fcn.104fc700
add esp, 0x10
test al, al
je 0x104aed08
push ebx
push edi
push dword [esp + 0x80]
call fcn.104f9d00
mov bl, byte [esp + 0xa2]
push dword [esp + 0x84]
movzx ecx, byte [esp + 0xfc]
push dword [esp + 0xa4]
mov dword [esp + 0x68], eax
lea edx, [ebx - 1]
cmp byte [esp + 0x100], dl
movzx eax, dl
mov dword [esp + 0x30], eax
cmovb eax, ecx
mov dword [esp + 0x30], eax
cmp bl, 1
movzx ecx, al
seta al
movzx eax, al
push eax
push dword [esp + 0xb0]
mov eax, dword [esp + 0xac]
shr eax, cl
push eax
mov eax, dword [esp + 0xac]
shr eax, cl
push eax
mov eax, dword [esp + 0xac]
shr eax, cl
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.104fc1f0
mov bl, byte [esp + 0xc2]
sub bl, byte [esp + 0x48]
cmp bl, byte [esp + 0xfc]
movzx edx, byte [esp + 0xfc]
mov ecx, dword [esp + 0x114]
movzx eax, bl
cmovb edx, eax
mov dword [ebp + 0xc], ecx
mov eax, dword [esp + 0x110]
mov dword [ebp + 8], eax
movzx eax, word [esp + 0xf4]
mov dword [ebp + 0x10], eax
movzx eax, word [esp + 0xf6]
mov dword [ebp + 0x14], eax
movzx eax, word [esp + 0xf8]
mov dword [ebp + 0x18], eax
movzx eax, word [esp + 0xfa]
mov dword [ebp + 0x1c], eax
mov al, byte [esp + 0xa4]
mov byte [ebp + 0x24], al
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x100], dl
call fcn.104bee40
mov byte [ebp + 0x25], al
movzx eax, al
push eax
call fcn.104fddc0
mov dl, byte [ebp + 0x25]
add esp, 0x2c
mov byte [esp + 0x13], dl
test al, al
je 0x104ae62a
movzx eax, dl
shl eax, 5
mov eax, dword [eax + 0x10a382f0]
jmp 0x104ae659
mov ecx, dword [ebp + 0xc]
xor eax, eax
movzx esi, dl
and ecx, 0x2000
shl esi, 5
or eax, ecx
mov byte [esp + 0x13], dl
je 0x104ae64b
mov eax, dword [esi + 0x10a382f4]
jmp 0x104ae655
mov eax, dword [esi + 0x10a382e8]
mov byte [esp + 0x13], dl
mov esi, dword [esp + 0x30]
mov dword [ebp + 0x34], eax
movzx ecx, dl
mov eax, ecx
shl eax, 5
add eax, 0x10a382f8
push ecx
movups xmm0, xmmword [eax]
mov al, byte [ebp + 0x24]
mov byte [esp + 0x21], al
movups xmmword [ebp + 0x38], xmm0
call fcn.104f9cf0
push dword [ebp + 0x34]
mov byte [esp + 0x26], al
call fcn.104ba880
mov edx, dword [ebp + 0xc]
add esp, 8
mov dword [ebp + 0x48], eax
mov cl, 0x24
mov eax, dword [ebp + 8]
call fcn.10512520
mov ecx, eax
xor edx, edx
and ecx, 7
lea eax, [ecx - 1]
cmp eax, ecx
cmovbe edx, eax
cmp byte [esp + 0xa0], 0
mov eax, dword [edx*8 + 0x10a7805c]
mov ecx, dword [edx*8 + 0x10a78060]
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], ecx
je 0x104ae6df
mov ax, 1
cmp ax, word [esp + 0x9c]
sbb eax, eax
and eax, 3
add eax, 3
jmp 0x104ae702
cmp dword [esp + 0x98], 1
jbe 0x104ae6f0
mov eax, 2
jmp 0x104ae702
mov ax, 1
cmp ax, word [esp + 0x9c]
sbb eax, eax
and eax, 4
inc eax
mov dword [ebp + 0x30], eax
mov edi, 6
mov ebx, dword [esp + 0xa0]
mov ecx, 1
mov al, byte [esp + 0xd8]
test bl, bl
mov byte [ebp + 0x26], al
movzx eax, word [esp + 0xd6]
cmovne ecx, edi
imul ecx, eax
test bl, bl
movzx eax, word [esp + 0xd6]
mov dword [ebp + 0x20], ecx
mov ecx, 1
cmovne ecx, edi
xor edi, edi
movzx ecx, cx
imul ecx, eax
mov dword [esp + 0x60], edi
movzx eax, cx
movzx ebx, ax
mov dword [esp + 0x34], eax
movzx eax, byte [esp + 0xd8]
imul ebx, eax
movzx eax, byte [ebp + 0x25]
push eax
mov dword [esp + 0x30], ebx
call fcn.104fddb0
add esp, 4
mov byte [esp + 0x1f], al
mov ecx, ebp
push esi
call fcn.104b0500
push 0x175c
lea eax, [esp + 0xb4]
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]
lea esi, [ebx + ebx*8]
add esp, 0xc
shl esi, 2
mov edx, eax
mov eax, dword [ecx]
push dword [edx + 4]
push dword [edx]
push edi
push esi
push edi
call dword [eax + 4]
push esi
mov esi, eax
mov dword [esp + 0x24], eax
push edi
push esi
call fcn.1050a0a0
mov eax, dword [esp + 0x40]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x20], edx
add esp, 0xc
cmp cx, ax
jae 0x104aea59
mov cl, byte [esp + 0xd8]
xor ebx, ebx
mov dword [esp + 0x28], ebx
nop dword [eax + eax]
mov byte [esp + 0x12], 0
test cl, cl
je 0x104aea3e
lea eax, [edi + edi*8]
lea esi, [esi + eax*4]
add esi, 8
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x68]
push dword [eax + 4]
push dword [eax]
mov al, byte [esp + 0x30]
add al, byte [esp + 0x1e]
movzx eax, al
push eax
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.104fbe90
add esp, 0x18
test al, al
je 0x104aea0e
mov al, byte [esp + 0x1d]
cmp byte [esp + 0x13], al
je 0x104ae8cf
movzx edx, byte [esp + 0x1e]
lea eax, [esp + 0xb8]
mov ebx, dword [esp + 0x48]
mov ecx, 4
cmp dword [esp + 0x40], ecx
mov ebp, 4
push 0x176e
cmova ecx, dword [esp + 0x44]
imul edx, ecx
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_renderer_vk.cpp
push eax
shr edx, 3
cmp dword [esp + 0x50], ebp
mov dword [esp + 0x24], edx
cmova ebp, dword [esp + 0x50]
imul ebp, edx
imul ebx, ebp
call fcn.105096b0
push eax
push 0
push ebx
push dword [0x10ac2e7c]
call fcn.104a1fb0
push dword [esp + 0x58]
mov edi, eax
push dword [esp + 0x38]
push dword [esp + 0x68]
push dword [esp + 0x68]
push dword [esp + 0x84]
push edi
push dword [0x10ac2e7c]
call fcn.104fa380
add esp, 0x38
jmp 0x104ae9db
cmp byte [esp + 0x1f], 0
je 0x104ae96d
mov ebp, dword [esp + 0x5c]
xor edx, edx
mov eax, dword [esp + 0x40]
push 0x1789
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_renderer_vk.cpp
movzx ecx, byte [ebp + 1]
div ecx
movzx ecx, byte [ebp + 2]
xor edx, edx
mov ebx, eax
mov eax, dword [esp + 0x4c]
div ecx
imul ebx, dword [esp + 0x54]
mov ebp, eax
lea eax, [esp + 0xc8]
push eax
imul ebp, ebx
mov dword [esp + 0x24], ebx
mov ebx, ebp
imul ebx, dword [esp + 0x54]
call fcn.105096b0
push eax
push 0
push ebx
push dword [0x10ac2e7c]
call fcn.104a1fb0
mov edi, eax
xor edx, edx
mov eax, dword [esp + 0x78]
push dword [esp + 0x34]
push dword [esp + 0x78]
movzx ecx, byte [eax + 1]
mov eax, dword [esp + 0x64]
div ecx
push dword [esp + 0x6c]
imul eax, dword [esp + 0x74]
xor edx, edx
push eax
mov eax, dword [esp + 0x88]
movzx ecx, byte [eax + 2]
mov eax, dword [esp + 0x70]
div ecx
push eax
jmp 0x104ae9d2
movzx eax, byte [esp + 0x54]
imul eax, dword [esp + 0x40]
push 0x17a3
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_renderer_vk.cpp
shr eax, 3
mov ebp, eax
mov dword [esp + 0x20], eax
imul ebp, dword [esp + 0x4c]
lea eax, [esp + 0xb0]
push eax
mov ebx, ebp
imul ebx, dword [esp + 0x54]
call fcn.105096b0
push eax
push 0
push ebx
push dword [0x10ac2e7c]
call fcn.104a1fb0
push dword [esp + 0x34]
mov edi, eax
movzx eax, byte [esp + 0x74]
push dword [esp + 0x78]
imul eax, dword [esp + 0x64]
push dword [esp + 0x6c]
shr eax, 3
push eax
push dword [esp + 0x70]
push edi
call fcn.104fa310
add esp, 0x34
mov eax, dword [esp + 0x40]
mov dword [esi - 4], eax
mov eax, dword [esp + 0x44]
mov dword [esi], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
movzx eax, byte [esp + 0x12]
mov dword [esi + 0x10], ebx
mov ebx, dword [esp + 0x28]
mov dword [esi - 8], edi
mov dword [esi + 0xc], ebp
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov al, byte [esp + 0x12]
add esi, 0x24
mov cl, byte [esp + 0xd8]
inc al
inc dword [esp + 0x60]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x12], al
cmp al, cl
jb 0x104ae806
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
inc edx
inc ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], ebx
cmp dx, ax
jb 0x104ae7f0
mov ebp, dword [esp + 0x6c]
mov ebx, dword [esp + 0x2c]
push 0x17bd
lea eax, [esp + 0x74]
xor esi, esi
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_renderer_vk.cpp
push eax
mov dword [esp + 0x20], esi
call fcn.105096b0
push eax
lea eax, [ebx*8]
sub eax, ebx
push esi
shl eax, 3
push eax
push dword [0x10ac2e7c]
call fcn.104a1fb0
add esp, 0x1c
mov edi, eax
mov dword [esp + 0x18], edi
test ebx, ebx
je 0x104aec17
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add ebx, 0x1c
add edi, 0x28
mov dword [esp + 0x34], eax
mov ecx, dword [ebx]
lea edi, [edi + 0x38]
mov esi, dword [ebp + 0x10]
lea ebx, [ebx + 0x24]
mov edx, dword [ebp + 0x14]
mov eax, 1
shr esi, cl
cmp esi, 1
mov dword [edi - 0x5c], 0
mov dword [edi - 0x58], 0
cmovb esi, eax
mov dword [edi - 0x54], 0
shr edx, cl
mov ecx, dword [esp + 0x14]
cmp edx, eax
mov dword [edi - 0x60], ecx
cmovb edx, eax
mov eax, dword [ebp + 0x48]
mov dword [edi - 0x50], eax
mov eax, dword [ebx - 0x24]
mov dword [edi - 0x4c], eax
mov eax, dword [ebx - 0x20]
mov dword [edi - 0x48], eax
mov dword [edi - 0x44], 1
mov dword [edi - 0x40], 0
mov dword [edi - 0x3c], 0
mov dword [edi - 0x38], 0
mov eax, dword [ebx - 0x34]
mov dword [edi - 0x34], esi
mov dword [edi - 0x30], edx
mov dword [edi - 0x2c], eax
add ecx, dword [ebx - 0x28]
sub dword [esp + 0x34], 1
mov dword [esp + 0x14], ecx
jne 0x104aeab0
test ecx, ecx
je 0x104aec0f
mov ecx, dword [0x10b23318]
lea eax, [esp + 0x64]
mov esi, dword [esp + 0x14]
push 0
push eax
mov ebx, dword [ecx + 0x1904]
lea eax, [esp + 0x3c]
push eax
push 6
push esi
mov dword [esp + 0x80], ebx
call fcn.104b03a0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push esi
push 0
push 0
push dword [esp + 0x80]
push dword [esp + 0x80]
push ebx
call dword [0x10ac2e18]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
add esi, 0x18
mov eax, dword [esp + 0x14]
mov edi, ebx
push dword [esi]
push dword [esi - 0x18]
push eax
call fcn.1050a090
mov eax, dword [esp + 0x20]
lea esi, [esi + 0x24]
add eax, dword [esi - 0x24]
add esp, 0xc
mov dword [esp + 0x14], eax
sub edi, 1
jne 0x104aeba1
push dword [esp + 0x68]
push dword [esp + 0x68]
push dword [esp + 0x74]
call dword [0x10ac2e1c]
mov edi, dword [esp + 0x18]
mov ecx, ebp
push edi
push ebx
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.104a7a90
mov ecx, dword [0x10b23318]
lea eax, [esp + 0x34]
push eax
call fcn.10495da0
mov ecx, dword [0x10b23318]
lea eax, [esp + 0x64]
push eax
call fcn.10495de0
jmp 0x104aec43
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov esi, dword [ebp + 0x7c]
mov eax, dword [ebp + 0x60]
cmp eax, esi
je 0x104aec43
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push esi
push eax
push dword [ebp + 0x48]
push dword [ebp + 0x54]
push dword [ebp + 0x50]
push dword [esp + 0x54]
call fcn.104daec0
add esp, 0x28
mov dword [ebp + 0x60], esi
push 0x17f4
lea eax, [esp + 0xac]
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_renderer_vk.cpp
push eax
call fcn.105096b0
push eax
push 0
push edi
push dword [0x10ac2e7c]
call fcn.104ba140
add esp, 0x1c
test ebx, ebx
je 0x104aecaf
mov esi, dword [esp + 0x20]
nop dword [eax]
nop dword [eax + eax]
push 0x17f8
lea eax, [esp + 0x74]
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_renderer_vk.cpp
push eax
call fcn.105096b0
push eax
push 0
push dword [esi]
push dword [0x10ac2e7c]
call fcn.104ba140
add esp, 0x1c
lea esi, [esi + 0x24]
sub ebx, 1
jne 0x104aec80
push 0x17fb
lea eax, [esp + 0x74]
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_renderer_vk.cpp
push eax
call fcn.105096b0
push eax
push 0
push dword [esp + 0x34]
push dword [0x10ac2e7c]
call fcn.104ba140
mov edi, dword [ebp + 0x14]
add esp, 0x1c
movzx eax, byte [ebp + 0x25]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x54]
mov dword [ebp + 0x8c], edi
pop edi
mov dword [ebp + 0x80], ecx
mov dword [ebp + 0x84], edx
mov dword [ebp + 0x88], esi
mov dword [ebp + 0x90], eax
pop ebx
mov eax, dword [ebp]
mov ecx, dword [esp + 0xd4]
pop esi
pop ebp
xor ecx, esp
call fcn.105116c0
add esp, 0xd0
ret 0x14