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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x84]
xor ebx, ebx
mov ebp, ecx
mov dword [esp + 0x28], eax
and edi, 0x70000b0
mov dword [esp + 0x34], ebp
cmp byte [esp + 0x88], bl
je 0x104dc4d1
xor eax, eax
mov ecx, 0x20000
jmp 0x104dc4e2
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
or ebx, eax
or edi, ecx
cmp byte [esp + 0x8c], 0
je 0x104dc4f9
xor eax, eax
mov ecx, 0xe0000000
jmp 0x104dc50a
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 0x8ad0]
or ebx, eax
or edi, ecx
cmp esi, 3
jb 0x104dc51e
or eax, 0xffffffff
jmp 0x104dc523
mov eax, 0xfbffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
push ecx
and edi, eax
mov dword [esp + 0x18], ebx
lea eax, [ebp + 0xa4e88]
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], eax
push ecx
mov ecx, eax
call fcn.104b86b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x104dc565
mov edx, dword [eax + 8]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x104dc7fe
jmp 0x104dc56d
mov dword [esp + 0x10], 0
movzx ecx, byte [esp + 0x88]
mov eax, edi
shr eax, 4
xor ecx, 1
and eax, 3
add ecx, 2
mov dword [esp + 0x48], ecx
mov ecx, edi
mov eax, dword [eax*4 + 0x10a2e840]
mov dword [esp + 0x4c], eax
xor eax, eax
cmp esi, 3
jb 0x104dc66c
and ecx, 0x80
mov dword [esp + 0x50], 1
or eax, ecx
jne 0x104dc5b9
mov dword [esp + 0x50], 0
xor eax, eax
mov dword [esp + 0x54], 0
cmp byte [ebp + 0x8b4c], al
mov ecx, edi
mov dword [esp + 0x58], 0
sete al
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
and ecx, 0x1000000
movzx eax, byte [esp + 0x8c]
mov dword [esp + 0x64], eax
xor eax, eax
or eax, ecx
mov dword [esp + 0x68], 1
jne 0x104dc60a
mov dword [esp + 0x68], 0
mov ecx, edi
mov dword [esp + 0x6c], 1
and ecx, 0x2000000
xor eax, eax
or eax, ecx
jne 0x104dc628
mov dword [esp + 0x6c], 0
mov ecx, edi
mov dword [esp + 0x70], 0
and ecx, 0x4000000
mov dword [esp + 0x74], 1
xor eax, eax
or eax, ecx
jne 0x104dc64e
mov dword [esp + 0x74], 0
mov eax, dword [ebp + 0x280]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x4c]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xe0]
jmp 0x104dc6f5
cmp byte [ebp + 0x8b4c], al
mov dword [esp + 0x50], 0
sete al
mov dword [esp + 0x54], 0
mov dword [esp + 0x60], eax
and ecx, 0x1000000
movzx eax, byte [esp + 0x8c]
mov dword [esp + 0x64], eax
xor eax, eax
or eax, ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x68], 1
jne 0x104dc6c1
mov dword [esp + 0x68], 0
mov ecx, edi
mov dword [esp + 0x6c], 1
and ecx, 0x2000000
xor eax, eax
or eax, ecx
jne 0x104dc6df
mov dword [esp + 0x6c], 0
mov eax, dword [ebp + 0x280]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x4c]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
mov eax, dword [esp + 0x10]
lea ecx, [ebp + 0xa4e88]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], ebx
push eax
mov dword [esp + 0x34], edi
call fcn.104b86b0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x104dc7d3
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x104dc73a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 8], 0
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
mov ebp, dword [eax + 8]
mov ebx, dword [eax + 4]
sub ebp, ebx
mov eax, dword [esi]
sar ebp, 2
xor ecx, ecx
mov dword [esp + 0x20], eax
movsx eax, byte [edx]
inc edx
imul ecx, ecx, 0x1003f
add ecx, eax
lea eax, [esp + 0x24]
cmp edx, eax
jne 0x104dc755
lea eax, [ebp - 2]
and eax, ecx
mov ecx, dword [esi + 0xc]
cmp dword [ebx + eax*4], esi
jne 0x104dc783
mov dword [ebx + eax*4], ecx
test eax, eax
je 0x104dc783
dec eax
cmp dword [ebx + eax*4], esi
je 0x104dc776
mov edx, dword [esi + 0x10]
test edx, edx
je 0x104dc790
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
test ecx, ecx
je 0x104dc79a
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
push 0x40
lea eax, [esp + 0x2c]
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 eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
dec dword [eax]
jmp 0x104dc7d9
lea eax, [ebp + 0xa4e88]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], ebx
push ecx
mov ecx, eax
mov dword [esp + 0x44], edi
call fcn.104ce000
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x284]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xac]
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x6c
ret 0x10