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

Disassembly:
sub esp, 0x3a0
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x39c], eax
push ebx
mov ebx, dword [esp + 0x3b0]
lea eax, [esp + 0x3b4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x3b8]
push 2
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x8c]
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov byte [esp + 0x9c], 0
call fcn.105093d0
mov al, byte [esp + 0x3b4]
movzx ebp, al
mov dword [esp + 0x28], ebp
test al, al
je 0x104db12e
mov esi, edi
mov edi, ebp
nop dword [eax]
push 4
push dword [esi]
lea ecx, [esp + 0x90]
call fcn.105093d0
lea esi, [esi + 4]
sub edi, 1
jne 0x104db110
mov edi, dword [esp + 0x14]
jmp 0x104db132
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x88]
call fcn.10509840
mov esi, dword [ebx]
xor ecx, ecx
mov ebx, dword [esp + 0x30]
or ecx, eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], ecx
push eax
mov edx, dword [esi + 0x94]
lea eax, [esp + 0x24]
mov dword [esp + 0x38], ecx
lea ecx, [ebx + 0xa4e78]
push eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], edx
call fcn.104b86b0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x104db180
mov edx, dword [eax + 8]
jmp 0x104db182
xor edx, edx
mov dword [esp + 0x2c], edx
test edx, edx
jne 0x104db5f7
push 0x24
lea eax, [esi + 0x70]
push eax
lea eax, [esp + 0x390]
lea ebx, [esp + 0xf0]
push eax
mov dword [esp + 0x24], ebx
call fcn.1050a090
xor al, al
add esp, 0xc
mov byte [esp + 0x13], al
cmp byte [esp + 0x3b4], al
jbe 0x104db300
lea esi, [ebp - 1]
mov dword [esp + 0x1c], esi
nop dword [eax]
movzx ebp, al
xor ecx, ecx
push 0x50
lea eax, [esp + 0x9c]
mov word [esp + 0xa0], cx
mov dword [esp + 0x24], ebp
push dword [edi + ebp*4]
push eax
call fcn.1050a090
add esp, 0xc
xor eax, eax
nop dword [eax + eax]
mov cx, word [esp + eax + 0x388]
xor edx, edx
and cx, word [esp + eax + 0xc2]
movzx ecx, cx
cmp dx, cx
mov edx, 0xffff
je 0x104db239
cmp dx, cx
je 0x104db239
cmp eax, 0x24
jae 0x104db61f
xor ecx, ecx
mov word [esp + eax + 0x388], cx
jmp 0x104db251
cmp ebp, esi
jne 0x104db244
not ecx
movzx ecx, cx
jmp 0x104db249
mov ecx, 0xffff
mov word [esp + eax + 0xc2], cx
add eax, 2
cmp eax, 0x24
jb 0x104db200
lea esi, [esp + 0xc2]
mov edi, 0x10a2ee68
mov ebp, 0x12
nop word [eax + eax]
cmp dx, word [esi]
je 0x104db2c8
push 0x1c
push edi
push ebx
call fcn.1050a090
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [ebx + 0xc], eax
add esp, 0xc
movzx eax, word [esi]
cmp cx, ax
jne 0x104db296
xor eax, eax
jmp 0x104db2bd
mov edx, eax
shr eax, 3
mov ecx, edx
and eax, 7
and ecx, 3
shr edx, 7
and edx, 1
lea eax, [ecx + eax*4]
lea eax, [edx + eax*2]
mov eax, dword [eax*4 + 0x10a2f060]
mov dword [ebx + 8], eax
movzx eax, word [esi - 0x24]
mov dword [ebx + 0x10], eax
mov edx, 0xffff
add ebx, 0x1c
add edi, 0x1c
add esi, 2
sub ebp, 1
jne 0x104db270
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x3b4]
inc al
mov dword [esp + 0x18], ebx
mov byte [esp + 0x13], al
cmp al, cl
jae 0x104db2f9
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
jmp 0x104db1d0
movzx eax, cl
mov dword [esp + 0x28], eax
lea eax, [esp + 0xe8]
mov dword [esp + 0x6c], str.TEXCOORD
mov ecx, ebx
mov dword [esp + 0x70], 0
sub ecx, eax
mov dword [esp + 0x74], 2
mov eax, 0x92492493
mov dword [esp + 0x78], 0
imul ecx
mov dword [esp + 0x7c], 0xffffffff
add edx, ecx
mov dword [esp + 0x80], 1
sar edx, 4
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x84], 1
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], ecx
xor edx, edx
mov dword [esp + 0x14], eax
cmp dx, word [esp + 0x3c0]
jae 0x104db4a0
nop word [eax + eax]
mov edi, 7
lea esi, [esp + 0xe8]
sub edi, ecx
xor ebp, ebp
mov dword [esp + 0x1c], edi
test eax, eax
je 0x104db454
mov ebx, edi
nop
push closesocket
push str.TEXCOORD
mov dword [esp + 0x3c], esi
mov dword [esp + 0x68], 0x1058dafb
mov dword [esp + 0x6c], 0
mov byte [esp + 0x70], 1
call fcn.1050b4f0
mov edi, dword [esi]
add esp, 8
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], str.TEXCOORD
mov byte [esp + 0x68], 1
mov dword [esp + 0x50], 0x1058dafb
mov dword [esp + 0x54], 0
mov byte [esp + 0x58], 1
test edi, edi
je 0x104db412
push closesocket
push edi
call fcn.1050b4f0
add esp, 8
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edi
mov byte [esp + 0x58], 1
push closesocket
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.1050b130
add esp, 0xc
test eax, eax
jne 0x104db432
cmp dword [esi + 4], ebx
je 0x104db444
mov eax, dword [esp + 0x14]
inc ebp
add esi, 0x1c
cmp ebp, eax
jb 0x104db3a0
jmp 0x104db448
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
cmp ebp, eax
jne 0x104db461
mov esi, ebx
add ebx, 0x1c
mov dword [esp + 0x18], ebx
push 0x1c
lea eax, [esp + 0x70]
push eax
push esi
call fcn.1050a090
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xc], eax
mov eax, ecx
shl eax, 4
inc ecx
mov dword [esi + 0x10], eax
movzx eax, word [esp + 0x3c0]
cmp ecx, eax
mov dword [esi + 4], edi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
jb 0x104db380
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x2c]
mov ebp, dword [esp + 0x30]
push edx
mov eax, dword [eax]
mov edi, dword [ebp + 0x280]
mov ecx, dword [eax + 4]
mov eax, 0x92492493
mov esi, dword [edi]
push dword [ecx + 4]
push dword [ecx]
lea ecx, [esp + 0xf4]
sub ebx, ecx
imul ebx
add edx, ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
mov eax, ecx
push eax
push edi
call dword [esi + 0x2c]
mov eax, dword [esp + 0x2c]
add ebp, 0xa4e78
mov dword [esp + 0x34], eax
mov ecx, ebp
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.104b86b0
mov esi, dword [esp + 0x48]
test esi, esi
je 0x104db5c6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x104db532
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 8], 0
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x3c]
mov edi, dword [ebp + 4]
sub ebx, edi
mov eax, dword [esi]
sar ebx, 2
xor ecx, ecx
mov dword [esp + 0x3c], eax
nop dword [eax]
movsx eax, byte [edx]
inc edx
imul ecx, ecx, 0x1003f
add ecx, eax
lea eax, [esp + 0x40]
cmp edx, eax
jne 0x104db550
mov edx, dword [esi + 0xc]
lea eax, [ebx - 2]
and eax, ecx
cmp dword [edi + eax*4], esi
lea ecx, [edi + eax*4]
jne 0x104db583
mov dword [ecx], edx
test eax, eax
je 0x104db583
dec eax
cmp dword [edi + eax*4], esi
lea ecx, [edi + eax*4]
je 0x104db574
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x104db590
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
test edx, edx
je 0x104db59a
mov eax, dword [esi + 0x10]
mov dword [edx + 0x10], eax
push 0x40
lea eax, [esp + 0x4c]
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 eax, dword [esp + 0x40]
mov ecx, ebp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.104ce000
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x284]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov ecx, dword [esp + 0x3ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x3a0
ret 0x10
call fcn.10512b17
int3