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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
mov edi, dword [ebx + 4]
lea eax, [esi + 3]
cmp eax, edi
lea edx, [esi + 4]
jge 0x109b1480
mov eax, dword [ebx]
movzx ecx, byte [eax + esi + 1]
mov ch, byte [eax + esi]
movzx ebp, byte [eax + esi + 2]
shl ecx, 8
or ecx, ebp
movzx ebp, byte [eax + esi + 3]
shl ecx, 8
or ecx, ebp
cmp ecx, 0x54585556
jne 0x109b1480
mov ecx, edx
add edx, 2
mov dword [esp + 0x7c], edx
lea edx, [ecx + 1]
cmp edx, edi
jge 0x109b12f0
movzx dx, byte [eax + ecx + 1]
mov dh, byte [eax + ecx]
mov eax, edx
cmp ax, 2
je 0x109b12f4
mov ecx, dword [0x10fcccac]
movzx eax, ax
push eax
push str.VMAD_dimension_is__d__should_be_2__.
push 0x2ff
push ecx
call fcn.109baec0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
xor eax, eax
jmp 0x109b12cb
lea edx, [esp + 0x7c]
push edx
push ebx
call fcn.109b0f30
push eax
mov eax, dword [0x10f43370]
push str.Processing_VMAD_TXUV__Name___s.
push 0x2f8
push eax
call fcn.109baec0
mov ecx, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
sub ecx, ebp
add ecx, esi
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [0x10f43370]
sar edx, 1
push str.Processing_discontinuous_UV_map.
mov esi, edx
push 0x2f8
shr esi, 0x1f
push ecx
add esi, edx
call fcn.109baec0
add esp, 0x24
test esi, esi
jle 0x109b1480
mov dword [esp + 0x10], esi
lea esp, [esp]
mov ecx, dword [ebx + 4]
mov eax, ebp
lea edx, [eax + 1]
add ebp, 2
cmp edx, ecx
jge 0x109b137e
mov edx, dword [ebx]
add eax, edx
movzx dx, byte [eax + 1]
mov dh, byte [eax]
mov edi, edx
jmp 0x109b1380
xor edi, edi
mov eax, ebp
lea edx, [eax + 1]
add ebp, 2
cmp edx, ecx
jge 0x109b139b
mov edx, dword [ebx]
add eax, edx
movzx dx, byte [eax + 1]
mov dh, byte [eax]
mov esi, edx
jmp 0x109b139d
xor esi, esi
mov eax, ebp
lea edx, [eax + 3]
add ebp, 4
cmp edx, ecx
jge 0x109b13d0
mov edx, dword [ebx]
movzx ebx, byte [eax + edx + 2]
add eax, edx
movzx edx, byte [eax + 1]
mov dh, byte [eax]
movzx eax, byte [eax + 3]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x6c]
shl edx, 8
or edx, eax
mov dword [esp + 0x7c], edx
jmp 0x109b13d8
mov dword [esp + 0x7c], 0
mov eax, ebp
lea edx, [eax + 3]
add ebp, 4
cmp edx, ecx
jge 0x109b140c
mov ecx, dword [ebx]
movzx edx, byte [eax + ecx + 1]
mov dh, byte [eax + ecx]
add eax, ecx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov dword [esp + 0x14], edx
fld dword [esp + 0x14]
jmp 0x109b1412
fld dword [0x10e4500c]
mov ecx, dword [esp + 0x74]
fsubr dword [0x10e45008]
mov eax, dword [ecx]
movzx esi, si
imul esi, esi, 0x148
add esi, eax
movzx eax, di
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
lea edi, [eax + edx*8]
xor ecx, ecx
lea edx, [esi + 0x38]
lea ecx, [ecx]
fld dword [edi]
fld dword [edx - 8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x109b146b
fld dword [edi + 4]
fld dword [edx - 4]
fucompp
fnstsw ax
test ah, 0x44
jp 0x109b146b
fld dword [edi + 8]
fld dword [edx]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x109b1488
inc ecx
add edx, 0xc
cmp ecx, 3
jl 0x109b1440
fstp st(0)
dec dword [esp + 0x10]
jne 0x109b1360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
cmp ecx, 3
fld dword [esp + 0x7c]
lea edx, [ecx + ecx*2]
fstp dword [esi + edx*4 + 0x11c]
lea eax, [ecx + ecx*2 + 0x48]
fstp dword [esi + eax*4]
jge 0x109b1476
lea ecx, [esi + 0x11c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
lea edx, [esi + 0x128]
mov eax, dword [edx]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
lea eax, [esi + 0x134]
mov ecx, dword [eax]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0xf8]
mov dword [esp + 0x24], edx
mov edx, dword [ecx]
mov dword [esp + 0x28], eax
call dword [edx + 0x80]
mov ecx, dword [esi + 0xf8]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
call dword [eax + 0x84]
fild dword [esp + 0x18]
fld dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
fmul st(1)
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
fstp dword [esp + 0x44]
mov dword [esp + 0x58], edx
fild dword [esp + 0x1c]
lea ecx, [esi + 0x24]
fld dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x48]
fmul st(1)
lea edx, [esi + 0x18]
push edx
mov dword [esp + 0x6c], eax
fstp dword [esp + 0x50]
mov edx, dword [esp + 0x50]
fld st(1)
push esi
fmul dword [esp + 0x38]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
fstp dword [esp + 0x68]
fld dword [esp + 0x48]
mov dword [eax + 4], edx
fmul st(1)
mov dword [eax + 8], ecx
lea edx, [esi + 0x48]
mov ecx, dword [edx]
fstp dword [esp + 0x6c]
sub esp, 0xc
fxch st(1)
mov eax, esp
fmul dword [esp + 0x5c]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
fstp dword [esp + 0x80]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x74]
fmul dword [esp + 0x60]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x78]
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0x90]
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea edx, [esi + 0x3c]
mov ecx, dword [edx]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x98]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x9c]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xac]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
add esi, 0x30
mov eax, dword [esi]
mov ecx, dword [esi + 4]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [esi + 8]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
call fcn.10923fa0
add esp, 0x54
jmp 0x109b1476