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

Disassembly:
sub esp, 0x78
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x74], eax
mov edx, dword [esp + 0x7c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x90]
mov esi, edx
mov eax, edi
mov ebp, ecx
shrd esi, eax, 4
mov dword [esp + 0x1c], ebp
and esi, 0xf
jne 0x104d9e43
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jmp 0x104d9e4d
mov eax, 0xf0
mov ecx, 0x40
and dword [esp + 0x98], 0xffffff00
and edx, eax
mov eax, dword [esp + 0x94]
and edi, ecx
mov ebx, eax
mov dword [esp + 0x8c], edx
and eax, 0xffffff00
movzx ecx, bl
mov dword [esp + 0x94], eax
lea eax, [esp + 0x8c]
push 8
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x44]
push eax
mov dword [esp + 0x98], edi
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov byte [esp + 0x54], 0
call fcn.105093d0
push 8
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x48]
call fcn.105093d0
lea ecx, [esp + 0x40]
call fcn.10509840
mov edi, eax
mov dword [esp + 0x24], 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
push eax
lea eax, [esp + 0x18]
add ebp, 0xa4e68
push eax
mov ecx, ebp
call fcn.104b86b0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x104d9efc
mov edx, dword [eax + 8]
jmp 0x104d9efe
xor edx, edx
mov dword [esp + 0x10], edx
test edx, edx
jne 0x104da153
push 0x34
push edx
lea eax, [esp + 0x58]
push eax
call fcn.1050a0a0
mov ecx, dword [esp + 0x9c]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x54], 1
test esi, esi
setne al
and ecx, 0x40
mov dword [esp + 0x50], eax
xor eax, eax
or eax, ecx
jne 0x104d9f45
mov dword [esp + 0x54], 0
mov eax, dword [esi*4 + 0x10a2e7fc]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x98]
test eax, eax
je 0x104d9f66
cmp eax, ebx
je 0x104d9f66
mov edx, 1
jmp 0x104d9f68
xor edx, edx
test edx, edx
mov ecx, ebx
cmovne ecx, eax
cmp dword [esp + 0x94], 0
jne 0x104d9f85
mov dword [esp + 0x5c], 0
test eax, eax
je 0x104d9f8d
mov dword [esp + 0x5c], 1
mov eax, ebx
mov byte [esp + 0x61], 0xff
shr eax, 8
lea edx, [esp + 0x10]
mov byte [esp + 0x60], al
mov eax, ebx
shr eax, 0x14
and eax, 0xf
push edx
lea edx, [esp + 0x54]
push edx
mov eax, dword [eax*4 + 0x10a2e820]
mov dword [esp + 0x6c], eax
mov eax, ebx
shr eax, 0x18
and eax, 0xf
mov eax, dword [eax*4 + 0x10a2e820]
mov dword [esp + 0x70], eax
mov eax, ebx
shr eax, 0x1c
shr ebx, 0x10
and ebx, 0xf
mov eax, dword [eax*4 + 0x10a2e820]
mov dword [esp + 0x74], eax
mov eax, dword [ebx*4 + 0x10a2e7fc]
mov dword [esp + 0x78], eax
mov eax, ecx
shr eax, 0x14
and eax, 0xf
mov eax, dword [eax*4 + 0x10a2e820]
mov dword [esp + 0x7c], eax
mov eax, ecx
shr eax, 0x18
and eax, 0xf
mov eax, dword [eax*4 + 0x10a2e820]
mov dword [esp + 0x80], eax
mov eax, ecx
shr eax, 0x1c
shr ecx, 0x10
and ecx, 0xf
mov eax, dword [eax*4 + 0x10a2e820]
mov dword [esp + 0x84], eax
mov eax, dword [ecx*4 + 0x10a2e7fc]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x280]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [esp + 0x10]
mov ecx, ebp
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x34], edi
push eax
mov dword [esp + 0x3c], 0
call fcn.104b86b0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x104da12a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x104da091
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 8], 0
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x18]
mov edi, dword [ebp + 4]
sub ebx, edi
mov eax, dword [esi]
sar ebx, 2
xor ecx, ecx
mov dword [esp + 0x18], eax
nop dword [eax + eax]
movsx eax, byte [edx]
inc edx
imul ecx, ecx, 0x1003f
add ecx, eax
lea eax, [esp + 0x1c]
cmp edx, eax
jne 0x104da0b0
mov edx, dword [esi + 0xc]
lea eax, [ebx - 2]
and eax, ecx
cmp dword [edi + eax*4], esi
lea ecx, [edi + eax*4]
jne 0x104da0e3
mov dword [ecx], edx
test eax, eax
je 0x104da0e3
dec eax
cmp dword [edi + eax*4], esi
lea ecx, [edi + eax*4]
je 0x104da0d4
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x104da0f0
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
test edx, edx
je 0x104da0fa
mov eax, dword [esi + 0x10]
mov dword [edx + 0x10], eax
push 0x40
lea eax, [esp + 0x34]
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]
dec dword [ebp]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov ecx, ebp
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x24], edi
push eax
mov dword [esp + 0x2c], 0
call fcn.104ce000
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x3c]
push edx
mov eax, dword [eax + 0x284]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x90]
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x78
ret 0x10