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

Disassembly:
sub esp, 0xdc
mov eax, dword [0x100fd640]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xe8]
fldz
fld1
push ebx
fldz
push ebp
push esi
mov ebx, ecx
mov esi, dword [ebx + 0x28]
xor ecx, ecx
push edi
mov edi, edx
cmp edi, 4
setg cl
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x20], ebx
lea ebp, [ecx*4 + 4]
xor ecx, ecx
mov dword [esp + 0x1c], ebp
cmp ebp, 4
jl 0x10017f7e
mov ebp, dword [esp + 0xf4]
add ebp, 8
lea edx, [eax + 2]
mov dword [esp + 0x10], ebp
jmp 0x10017e4b
mov ebp, dword [esp + 0x10]
cmp ecx, edi
jge 0x10017e58
fld dword [ebp - 8]
fstp dword [esp + 0x14]
jmp 0x10017e60
fxch st(2)
fst dword [esp + 0x14]
fxch st(2)
fld dword [esp + 0x14]
lea ebx, [edi - 1]
fstp dword [esp + eax*4 + 0x68]
cmp ecx, ebx
jge 0x10017e79
fld dword [ebp - 4]
fsub dword [ebp - 8]
fdivr st(2)
jmp 0x10017e7b
fld st(0)
fstp dword [esp + eax*4 + 0x6c]
lea ebx, [edx - 1]
fxch st(2)
fst dword [esp + eax*4 + 0x70]
fst dword [esp + eax*4 + 0x74]
cmp ebx, edi
jge 0x10017e99
fld dword [ebp - 4]
fstp dword [esp + 0x14]
jmp 0x10017e9d
fst dword [esp + 0x14]
fld dword [esp + 0x14]
lea ebp, [edi - 1]
cmp ebx, ebp
fstp dword [esp + eax*4 + 0x78]
mov ebx, dword [esp + 0x10]
jge 0x10017eb9
fld dword [ebx]
fsub dword [ebx - 4]
fdivr st(2)
jmp 0x10017ebb
fld st(2)
fstp dword [esp + eax*4 + 0x7c]
fst dword [esp + eax*4 + 0x80]
fst dword [esp + eax*4 + 0x84]
cmp edx, edi
jge 0x10017ed9
fld dword [ebx]
fstp dword [esp + 0x14]
jmp 0x10017edd
fst dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + eax*4 + 0x88]
cmp edx, ebp
jge 0x10017ef5
fld dword [ebx + 4]
fsub dword [ebx]
fdivr st(2)
jmp 0x10017ef7
fld st(2)
fstp dword [esp + eax*4 + 0x8c]
lea ebx, [edx + 1]
fst dword [esp + eax*4 + 0x90]
fst dword [esp + eax*4 + 0x94]
cmp ebx, edi
jge 0x10017f20
mov ebp, dword [esp + 0x10]
fld dword [ebp + 4]
fstp dword [esp + 0x14]
jmp 0x10017f24
fst dword [esp + 0x14]
fld dword [esp + 0x14]
lea ebp, [edi - 1]
fstp dword [esp + eax*4 + 0x98]
cmp ebx, ebp
jge 0x10017f44
mov ebx, dword [esp + 0x10]
fld dword [ebx + 8]
fsub dword [ebx + 4]
fdivr st(2)
jmp 0x10017f46
fld st(2)
mov ebp, dword [esp + 0x1c]
fstp dword [esp + eax*4 + 0x9c]
add dword [esp + 0x10], 0x10
fst dword [esp + eax*4 + 0xa0]
add ecx, 4
fst dword [esp + eax*4 + 0xa4]
lea ebx, [ebp - 3]
add eax, 0x10
fxch st(2)
add edx, 4
cmp ecx, ebx
jl 0x10017e47
mov ebx, dword [esp + 0x20]
cmp ecx, ebp
jge 0x1001816d
lea eax, [esp + eax*4 + 0x6c]
jmp 0x10017f8e
fxch st(2)
cmp ecx, edi
jge 0x10017fa2
mov edx, dword [esp + 0xf4]
fld dword [edx + ecx*4]
fstp dword [esp + 0x14]
jmp 0x10017faa
fxch st(2)
fst dword [esp + 0x14]
fxch st(2)
fld dword [esp + 0x14]
lea edx, [edi - 1]
fstp dword [eax - 4]
cmp ecx, edx
jge 0x10017fca
mov edx, dword [esp + 0xf4]
fld dword [edx + ecx*4 + 4]
fsub dword [edx + ecx*4]
fdivr st(2)
jmp 0x10017fcc
fld st(0)
fstp dword [eax]
inc ecx
fxch st(2)
add eax, 0x10
fst dword [eax - 0xc]
fst dword [eax - 8]
cmp ecx, ebp
jl 0x10017f8c
fstp st(0)
mov eax, dword [esi]
fstp st(0)
mov edx, dword [eax + 0x1b4]
fstp st(0)
push ebp
lea ecx, [esp + 0x6c]
push ecx
push 0
push esi
call edx
mov ecx, dword [ebx + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.1001c380
test eax, eax
js 0x10018154
mov ecx, dword [esp + 0x20]
mov ebp, dword [ecx + 0x18]
mov edx, dword [ebp]
mov ecx, dword [edx + 0x4c]
push 0x800
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
call ecx
test eax, eax
js 0x10018154
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
lea ecx, [edi*4]
push ecx
push edx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp edi, 0x10
jge 0x1001806c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + ecx - 4]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x3c], edx
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x50]
push 0
push ebp
call edx
xor eax, eax
cmp byte [esp + 0xf0], al
mov ecx, ebx
setne al
mov edi, eax
push edi
push ebp
call sym.awt.dll_public:_long_int___thiscall_D3DContext::SetTexture_struct_IDirect3DTexture9___unsigned_long_int_
push edi
push 2
mov ecx, ebx
mov ebp, eax
call sym.awt.dll_public:_long_int___thiscall_D3DContext::UpdateTextureColorState_unsigned_long_int__unsigned_long_int_
mov ecx, dword [esi]
mov edx, dword [ecx + 0x114]
push 3
push 1
push edi
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x114]
push 3
push 2
push edi
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x114]
push 2
push 5
push edi
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x114]
push 2
push 6
push edi
push esi
call edx
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call sub.MSVCR100.dll_memset
fld1
add esp, 0xc
fst dword [esp + 0x28]
fldz
xor eax, eax
cmp byte [esp + 0xf0], al
fst dword [esp + 0x38]
fst dword [esp + 0x48]
lea edx, [esp + 0x28]
fst dword [esp + 0x58]
setne al
fst dword [esp + 0x2c]
push edx
fst dword [esp + 0x50]
fstp dword [esp + 0x60]
add eax, 0x10
fstp dword [esp + 0x40]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xb0]
push eax
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x10c]
push 0x20000
push 0xb
push edi
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10c]
push 2
push 0x18
push edi
push esi
call edx
mov eax, ebp
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b4c22
add esp, 0xdc
ret
fstp st(2)
jmp 0x10017fe0