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

Disassembly:
sub esp, 0x580
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x57c], eax
mov eax, dword [esp + 0x59c]
mov edx, dword [0x10ac2e88]
mov dword [esp + 0x20], eax
mov ax, word [esp + 0x5a0]
movzx eax, ax
imul eax, eax, 0x260
push ebx
mov ebx, dword [esp + 0x590]
push ebp
mov ebp, dword [esp + 0x58c]
add eax, 0xdd3a8
mov dword [esp + 8], ebp
push esi
mov esi, ecx
mov ecx, 0x10700ff
add eax, esi
mov dword [esp + 0x28], eax
mov eax, edx
and eax, 2
or eax, 0
push edi
mov edi, dword [esp + 0x598]
mov eax, 0xfffff0ff
jne 0x104bc009
mov ecx, 0x10700fb
cmp byte [esi + 0x634], 0
je 0x104bc024
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
jmp 0x104bc041
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x10]
and edx, 8
or edx, 0
je 0x104bc055
xor edx, edx
mov dword [esp + 0x10], 0x4000000
jmp 0x104bc06a
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
or ecx, dword [esp + 0x10]
or eax, edx
or ecx, dword [esp + 0x14]
or eax, dword [esp + 0x18]
and ebx, ecx
and dword [esp + 0x5a0], 0xffffff00
and edi, eax
and dword [esp + 0x5a4], 0xffffff00
xor eax, eax
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x5a8]
mov dword [esp + 0x1c], edi
mov word [esp + 0x284], ax
mov dword [esp + 0x34], 0xffff
test bl, bl
je 0x104bc115
mov eax, dword [esp + 0x30]
push 0x50
push dword [eax]
lea eax, [esp + 0x288]
push eax
call fcn.1050a090
mov edi, dword [esp + 0x38]
add esp, 0xc
xor ecx, ecx
mov edx, dword [edi]
nop word [eax + eax]
mov ax, word [edx + ecx*2 + 0x74]
and ax, word [esp + ecx*2 + 0x2aa]
movzx eax, ax
test ax, ax
jne 0x104bc0fc
mov eax, 0xffff
jmp 0x104bc105
cmp ax, word [esp + 0x34]
jne 0x104bc105
xor eax, eax
mov word [esp + ecx*2 + 0x2aa], ax
inc ecx
cmp ecx, 0x12
jb 0x104bc0e0
jmp 0x104bc119
mov edi, dword [esp + 0x2c]
movzx eax, word [esi + 0x215f64]
mov ecx, 0xffff
cmp cx, ax
je 0x104bc151
imul eax, eax, 0x520
lea ecx, [esi + 0x1c2cbc]
lea ebx, [esi + 0x1c2cb0]
add ecx, eax
add ebx, eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x5a8]
mov dword [esp + 0x34], ecx
jmp 0x104bc165
lea eax, [esi + 0xb4c]
mov dword [esp + 0x34], eax
lea eax, [esi + 0xb40]
mov dword [esp + 0x18], eax
push 8
lea eax, [esp + 0x20]
mov dword [esp + 0x214], 0
push eax
lea ecx, [esp + 0x218]
mov dword [esp + 0x21c], 0
mov byte [esp + 0x224], 0
call fcn.105093d0
push 8
lea eax, [esp + 0x5a4]
push eax
lea ecx, [esp + 0x218]
call fcn.105093d0
mov eax, dword [edi]
lea ecx, [esp + 0x210]
push 4
add eax, 0xac
push eax
call fcn.105093d0
mov eax, dword [edi]
lea ecx, [esp + 0x210]
push 0x24
add eax, 0x74
push eax
call fcn.105093d0
mov eax, dword [edi + 4]
test eax, eax
je 0x104bc1f1
push 4
add eax, 0xac
lea ecx, [esp + 0x214]
push eax
call fcn.105093d0
test bl, bl
je 0x104bc218
mov edi, dword [esp + 0x30]
movzx ebx, bl
nop dword [eax]
push 4
push dword [edi]
lea ecx, [esp + 0x218]
call fcn.105093d0
lea edi, [edi + 4]
sub ebx, 1
jne 0x104bc200
push 0x24
lea eax, [esp + 0x2ae]
push eax
lea ecx, [esp + 0x218]
call fcn.105093d0
push 1
lea eax, [esp + 0x5b8]
push eax
lea ecx, [esp + 0x218]
call fcn.105093d0
push 8
push dword [esp + 0x1c]
lea ecx, [esp + 0x218]
call fcn.105093d0
lea ecx, [esp + 0x210]
call fcn.10509840
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], 0
push ecx
lea ecx, [esp + 0x70]
mov ebx, eax
push ecx
lea ecx, [esi + 0x1edeb8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], ebx
call fcn.104b8730
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x104bc2ae
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
test ecx, ecx
jne 0x104bcb54
test edx, edx
je 0x104bc2bc
jmp 0x104bcb54
mov dword [ebp], 0
mov dword [ebp + 4], 0
push 0
push dword [esp + 0x24]
lea eax, [esp + 0x324]
mov ecx, esi
push dword [esp + 0x24]
mov dword [esp + 0x208], eax
lea eax, [esp + 0x1f0]
push eax
call fcn.104d9b80
mov edx, dword [esp + 0x20]
mov eax, edx
mov cl, byte [esi + 0x1f5f39]
shr eax, 0x10
and eax, 7
mov dword [esp + 0xe4], 0x14
shl eax, 4
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf4], 0
mov eax, dword [eax + 0x10a38130]
mov dword [esp + 0xf0], eax
mov eax, edx
shr eax, 4
and eax, 3
mov dword [esp + 0x8c], 0x17
cmp dword [esi + 0x584], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
je 0x104bc377
cmp byte [esi + 0x1f5f38], 0
mov dword [esp + 0x98], 1
jne 0x104bc382
mov dword [esp + 0x98], 0
cmp dword [esi + 0x58c], 0
mov dword [esp + 0x9c], 0
je 0x104bc3a5
mov dword [esp + 0xa0], 1
test cl, cl
jne 0x104bc3b0
mov dword [esp + 0xa0], 0
mov eax, dword [eax*4 + 0x10a38298]
mov ecx, edx
mov dword [esp + 0xa4], eax
and ecx, 0x80
xor eax, eax
mov dword [esp + 0xa8], 0
or eax, ecx
jne 0x104bc3e2
mov dword [esp + 0xa8], 1
cmp byte [0x10a780b1], 0
lea edi, [esp + 0x8c]
movaps xmm0, xmmword [0x10a45440]
mov dword [esp + 0xac], 0
movups xmmword [esp + 0xb0], xmm0
je 0x104bc457
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x3b9c5489
mov dword [esp + 0x90], eax
mov edi, eax
mov ecx, edx
mov dword [esp + 0x48], 0
and ecx, 0x4000000
mov dword [esp + 0x4c], 0
xor eax, eax
mov dword [esp + 0x50], 1
or eax, ecx
jne 0x104bc44f
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
cmp byte [esi + 0x634], 0
je 0x104bc4b5
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0x3b9ebdb9
mov dword [edi + 4], eax
mov ecx, edx
and ecx, 0x2000000
mov dword [esp + 0x78], 0
xor eax, eax
mov dword [esp + 0x7c], 3
or eax, ecx
jne 0x104bc495
mov dword [esp + 0x7c], 0
xor eax, eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov word [esp + 0x88], ax
mov ecx, dword [esp + 0x1c]
mov eax, edx
mov edi, dword [esp + 0x5a0]
shrd ecx, eax, 4
mov eax, 0
mov dword [esp + 0x220], 0x19
and ecx, 0xf
mov dword [esp + 0x224], 0
mov dword [esp + 0x228], 0
setne al
mov dword [esp + 0x230], 1
mov dword [esp + 0x22c], eax
and edx, 0x40
xor eax, eax
or eax, edx
jne 0x104bc518
mov dword [esp + 0x230], 0
mov eax, dword [ecx*4 + 0x10a38254]
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x5a4]
mov dword [esp + 0x238], 0
test edi, edi
jne 0x104bc54b
mov dword [esp + 0x23c], 0
test eax, eax
je 0x104bc565
mov dword [esp + 0x23c], 1
test eax, eax
je 0x104bc565
cmp eax, edi
je 0x104bc565
mov edx, 1
jmp 0x104bc567
xor edx, edx
mov ecx, edi
mov dword [esp + 0x250], 0xffffffff
test edx, edx
mov dword [esp + 0x254], 0xffffffff
push dword [esp + 0x5b4]
cmovne ecx, eax
mov dword [esp + 0x25c], 0
mov eax, edi
mov dword [esp + 0x270], 0xffffffff
shr eax, 0x14
and eax, 0xf
mov dword [esp + 0x274], 0xffffffff
mov dword [esp + 0x278], 0
mov dword [esp + 0x27c], 0
mov dword [esp + 0x280], 0x3f800000
mov eax, dword [eax*4 + 0x10a38278]
mov dword [esp + 0x244], eax
mov eax, edi
shr eax, 0x1c
mov eax, dword [eax*4 + 0x10a38278]
mov dword [esp + 0x248], eax
mov eax, edi
shr eax, 0x18
and eax, 0xf
shr edi, 0x10
and edi, 0xf
mov eax, dword [eax*4 + 0x10a38278]
mov dword [esp + 0x24c], eax
mov eax, dword [edi*4 + 0x10a38254]
mov dword [esp + 0x250], eax
mov eax, ecx
shr eax, 0x14
and eax, 0xf
mov edi, dword [esp + 0x30]
push edi
push dword [esp + 0x38]
mov eax, dword [eax*4 + 0x10a38278]
mov dword [esp + 0x268], eax
mov eax, ecx
shr eax, 0x1c
push dword [esp + 0x5b4]
mov eax, dword [eax*4 + 0x10a38278]
mov dword [esp + 0x270], eax
mov eax, ecx
shr eax, 0x18
and eax, 0xf
shr ecx, 0x10
and ecx, 0xf
mov eax, dword [eax*4 + 0x10a38278]
mov dword [esp + 0x274], eax
mov eax, dword [ecx*4 + 0x10a38254]
mov ecx, esi
mov dword [esp + 0x278], eax
lea eax, [esp + 0x2f0]
mov dword [esp + 0x1e8], eax
lea eax, [esp + 0x42c]
mov dword [esp + 0x1f0], eax
lea eax, [esp + 0x1d8]
push eax
call fcn.104db9a0
movaps xmm0, xmmword [0x10a453e0]
lea eax, [esp + 0x2d0]
mov edx, dword [edi + 4]
test edx, edx
mov dword [esp + 0x108], eax
mov eax, dword [edi]
movups xmmword [esp + 0x2d0], xmm0
mov dword [esp + 0xf8], 0x1b
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 4
mov dword [esp + 0x128], 0x12
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 1
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x138], ecx
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], str.main
mov dword [esp + 0x144], 0
je 0x104bc7ac
mov dword [esp + 0x148], 0x12
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
mov dword [esp + 0x154], 0x10
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x160], str.main
mov dword [esp + 0x164], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10c], 0x16
and ecx, 8
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 1
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 1
mov dword [esp + 0x124], 0
mov dword [esp + 0xc0], 0x18
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov eax, dword [eax]
mov dword [esp + 0xcc], eax
xor eax, eax
or eax, ecx
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 1
jne 0x104bc86b
mov dword [esp + 0xdc], 0
xor eax, eax
mov ecx, dword [edi + 0x25c]
test edx, edx
mov dword [esp + 0x1a4], ecx
mov ecx, dword [esp + 0x18]
xorps xmm0, xmm0
setne al
mov dword [esp + 0xe0], 0
inc eax
mov dword [esp + 0x168], 0x1c
mov dword [esp + 0x174], eax
lea eax, [esp + 0x128]
mov dword [esp + 0x178], eax
lea eax, [esp + 0x1c8]
mov dword [esp + 0x17c], eax
lea eax, [esp + 0xe4]
mov dword [esp + 0x180], eax
lea eax, [esp + 0x10c]
mov dword [esp + 0x188], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x18c], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0x190], eax
lea eax, [esp + 0x220]
mov dword [esp + 0x194], eax
lea eax, [esp + 0x1e4]
mov dword [esp + 0x198], eax
lea eax, [esp + 0xf8]
mov dword [esp + 0x19c], eax
mov eax, dword [edi + 0x258]
mov dword [esp + 0x16c], 0
mov dword [esp + 0x170], 0
mov dword [esp + 0x184], 0
mov dword [esp + 0x1a0], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1ac], ecx
mov ecx, dword [0x10ac2e78]
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1b0], 0
movlpd qword [esp + 0x1b8], xmm0
mov dword [esp + 0x1c0], 0
mov eax, dword [ecx]
push 0
push ebx
call dword [eax + 0x18]
xor edi, edi
mov dword [esp + 0x58], 0x11
mov ebx, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
test ebx, ebx
je 0x104bc9fd
push 0xe97
lea eax, [esp + 0x40]
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 edi
push ebx
push edi
call dword [edx + 4]
mov ecx, dword [0x10ac2e78]
mov edi, eax
push ebx
push edi
push 0
mov eax, dword [ecx]
push dword [esp + 0x1c]
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x104bc9fd
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edi
lea eax, [esp + 0x24]
push eax
push dword [esi + 4]
lea eax, [esp + 0x60]
push eax
push dword [esi + 0x1904]
call dword [0x10ac2d30]
push ebp
push dword [esi + 4]
lea eax, [esp + 0x170]
push eax
push 1
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esi + 0x1904]
call dword [0x10ac2d40]
push dword [ebp + 4]
lea ecx, [esi + 0x1edeb8]
push dword [ebp]
push 0
push dword [esp + 0x1c]
call fcn.104a1870
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esi + 0x1904]
call dword [0x10ac2d38]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x104bcad6
cmp ebx, eax
jae 0x104bcaa6
push 0xeb6
lea eax, [esp + 0x70]
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 dword [esp + 0x20]
push edi
call dword [edx + 4]
mov edi, eax
push edi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esi + 0x1904]
call dword [0x10ac2d38]
push dword [esp + 0x14]
mov ecx, dword [0x10ac2e78]
push edi
push 0
push dword [esp + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x20]
lea eax, [esp + 0x24]
push eax
push 1
push dword [esi + 0x191c]
push dword [esi + 0x1918]
push dword [esi + 0x1904]
call dword [0x10ac2d3c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
test edx, edx
jne 0x104bcb05
test ecx, ecx
je 0x104bcb24
mov eax, dword [0x10b23318]
push dword [eax + 4]
push ecx
push edx
push dword [eax + 0x1904]
call dword [0x10ac2d34]
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
test edi, edi
je 0x104bcb54
push 0xec2
lea eax, [esp + 0x38]
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 edi
call dword [edx + 4]
mov ecx, dword [esp + 0x58c]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x580
ret 0x24