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

Disassembly:
sub esp, 0x3a4
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x3a0], eax
push ebx
mov ebx, dword [esp + 0x3b8]
xor eax, eax
cmp dword [esp + 0x3bc], 1
push ebp
mov ebp, dword [esp + 0x3c4]
cmove ebx, eax
push esi
push edi
mov edi, dword [esp + 0x3bc]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov byte [esp + 0xb4], al
lea eax, [esp + 0x3c8]
push 4
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0xac]
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x48], ebx
call fcn.105093d0
movzx esi, byte [esp + 0x3b8]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x10], esi
lea eax, [esi*4]
push eax
push edi
call fcn.105093d0
test ebx, ebx
je 0x104bd9f8
push esi
push ebx
lea ecx, [esp + 0xb0]
call fcn.105093d0
lea ecx, [esp + 0xa8]
call fcn.10509840
mov ebx, dword [esp + 0x14]
mov edi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edi
push eax
add ebx, 0x1eded8
mov dword [esp + 0x40], 0
lea eax, [esp + 0x24]
mov dword [esp + 0x38], ebx
push eax
mov ecx, ebx
call fcn.104b8730
mov eax, dword [esp + 0x20]
test eax, eax
je 0x104bda5a
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
test ecx, ecx
jne 0x104bda4f
test eax, eax
je 0x104bda63
mov dword [ebp], ecx
mov dword [ebp + 4], eax
jmp 0x104bdef7
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
lea edx, [esi + esi]
xor cl, cl
test edx, edx
je 0x104bdaef
mov esi, dword [esp + 0x3c8]
xor eax, eax
nop dword [eax]
lea eax, [eax + eax*8]
inc cl
mov dword [esp + eax*4 + 0x170], 0
mov dword [esp + eax*4 + 0x174], 0
mov dword [esp + eax*4 + 0x178], esi
mov dword [esp + eax*4 + 0x17c], 0
mov dword [esp + eax*4 + 0x180], 0
mov dword [esp + eax*4 + 0x184], 2
mov dword [esp + eax*4 + 0x188], 1
mov dword [esp + eax*4 + 0x18c], 2
mov dword [esp + eax*4 + 0x190], 2
movzx eax, cl
cmp eax, edx
jb 0x104bda80
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x130], 0xffffffff
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x134], 2
mov dword [esp + 0xf0], 0xffffffff
mov dword [esp + 0xf4], 2
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x54], 3
cmp byte [esp + 0x3b8], cl
jbe 0x104bdc2b
mov ebx, dword [esp + 0x18]
lea eax, [esi + esi*8]
mov edi, dword [esp + 0x3c0]
lea esi, [esp + 0x178]
xor edx, edx
lea esi, [esi + eax*4]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x184]
sub ebx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
nop
mov eax, dword [edi]
mov ebx, dword [ebx + edi]
mov dword [ecx - 0x10], ebx
test al, 1
je 0x104bdbde
mov eax, dword [esp + 0x40]
mov dword [esp + ebp*8 + 0x134], 2
mov dword [esp + ebp*8 + 0x130], edx
mov dword [esp + ebp*8 + 0xf4], 2
mov dword [esp + ebp*8 + 0xf0], 0xffffffff
test eax, eax
je 0x104bdbdb
cmp byte [edx + eax], 0
je 0x104bdbdb
mov eax, dword [esp + 0x10]
mov dword [esi - 4], ebx
mov ebx, dword [esp + 0x1c]
add eax, ebx
inc ebx
mov dword [esi], 1
mov dword [esi + 4], 2
add esi, 0x24
mov dword [esp + ebp*8 + 0xf0], eax
mov dword [esp + 0x1c], ebx
inc ebp
jmp 0x104bdc09
test al, 6
je 0x104bdc09
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 3
mov dword [ecx + 0xc], 3
mov dword [esp + 0x54], 3
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x18]
inc edx
add edi, 4
add ecx, 0x24
sub dword [esp + 0x20], 1
jne 0x104bdb70
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov eax, 1
mov dword [esp + 0x80], 0
cmp ebp, eax
mov dword [esp + 0x84], 0
lea edx, [esp + 0x5c]
mov dword [esp + 0x88], 0
cmova eax, ebp
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], eax
lea eax, [esp + 0x130]
mov dword [esp + 0x94], eax
lea eax, [esp + 0xf0]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0xa0], 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], eax
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x174]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x78], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x80], eax
push dword [ecx + 4]
mov eax, dword [0x10ac2d20]
push edx
push dword [ecx + 0x1904]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xc8], 0xffffffff
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0x1f8e
mov dword [esp + 0xd4], 0x78e
mov dword [esp + 0xd8], 0x10000
mov dword [esp + 0xdc], 0x18000
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0xffffffff
mov dword [esp + 0xec], 0x78e
mov dword [esp + 0xf0], 0x1f8e
mov dword [esp + 0xf4], 0x10000
mov dword [esp + 0xf8], 0x18000
mov dword [esp + 0xfc], 0
mov dword [esp + 0x6c], 0x26
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x80], 1
mov dword [esp + 0x88], 2
call eax
test eax, eax
jne 0x104bdef9
mov eax, dword [esp + 0x2c]
mov ecx, ebx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x24], edi
push eax
mov dword [esp + 0x2c], 0
call fcn.104b8730
mov esi, dword [esp + 0x40]
test esi, esi
je 0x104bdebd
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
test ecx, ecx
jne 0x104bde04
test eax, eax
je 0x104bde27
push 0x12
push eax
push ecx
mov ecx, dword [0x10b23318]
lea ecx, [ecx + 0xe50]
call fcn.104d5120
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov edi, dword [ebx + 4]
lea edx, [esp + 0x30]
mov ebx, dword [ebx + 8]
mov eax, dword [esi]
sub ebx, edi
sar ebx, 2
xor ecx, ecx
mov dword [esp + 0x30], eax
nop
movsx eax, byte [edx]
inc edx
imul ecx, ecx, 0x1003f
add ecx, eax
lea eax, [esp + 0x34]
cmp edx, eax
jne 0x104bde40
mov edx, dword [esi + 0x10]
lea eax, [ebx - 2]
and eax, ecx
cmp dword [edi + eax*4], esi
lea ecx, [edi + eax*4]
jne 0x104bde73
mov dword [ecx], edx
test eax, eax
je 0x104bde73
dec eax
cmp dword [edi + eax*4], esi
lea ecx, [edi + eax*4]
je 0x104bde64
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x104bde80
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
test edx, edx
je 0x104bde8a
mov eax, dword [esi + 0x14]
mov dword [edx + 0x14], eax
push 0x40
lea eax, [esp + 0x44]
push str.F:_vcpkg_2024.05.24_buildtrees_bgfx_src_bgfx_296104bfea.clean_bgfx_src_bgfx.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 ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
dec dword [ebx]
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], edi
push eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], ebp
call fcn.104ce200
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [edx], eax
mov dword [edx + 4], ecx
xor eax, eax
mov ecx, dword [esp + 0x3b0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x3a4
ret 0x18