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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x694
mov ecx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
xor eax, eax
push esi
mov esi, dword [ebp + 0x14]
cmp ecx, ebx
push edi
setne al
cmp esi, 0x100
mov dword [esp + 0x40], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x34], ebx
mov dword [ebp + 0x10], eax
ja 0x1000d45a
lea edx, [esp + 0x2a0]
mov dword [esp + 0x40], edx
jmp 0x1000d485
lea ecx, [esi*4]
push ecx
call fcn.10003ce0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x68], eax
jne 0x1000d47f
mov dword [esp + 0x14], 1
jmp 0x1000ddf9
mov dword [esp + 0x40], eax
mov edx, eax
cmp esi, ebx
jle 0x1000d491
mov ecx, esi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x18]
push edx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.10028660
add esp, 0x14
cmp eax, ebx
je 0x1000d4b8
mov dword [esp + 0x14], 2
jmp 0x1000ddf9
mov ebx, dword [ebp + 0x1c]
lea ecx, [esp + 0xe8]
push ecx
push ebx
mov eax, dword [ebx]
call dword [eax + 0x34]
mov edx, dword [ebx]
add esp, 8
lea eax, [esp + 0x48]
push eax
push edi
push esi
push ebx
call dword [edx + 0xc]
mov eax, dword [esp + 0x58]
add esp, 0x10
lea edx, [esp + 0x48]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0xec]
push edx
push eax
call dword [ecx + 0x8c]
add esp, 0xc
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x5c]
mov ecx, dword [eax]
push 0
push 0
push edx
lea edx, [esp + 0x18]
push 0
push edx
lea edx, [esp + 0x4c]
push edx
push eax
call dword [ecx + 0x28]
mov eax, dword [esp + 0x28]
add esp, 0x1c
lea ecx, [eax + eax*2]
imul eax, dword [esp + 0x38]
shl ecx, 3
shl eax, 1
lea ecx, [ecx + ecx*2]
lea edx, [ecx + eax*8 + 0x148]
push edx
call fcn.10003ce0
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1000d554
mov dword [esp + 0x14], 3
jmp 0x1000ddf9
mov ecx, dword [esp + 0xc]
lea esi, [eax + ecx*8]
lea eax, [ecx + ecx*2]
shl eax, 3
mov dword [esp + 0x58], esi
add esi, eax
mov dword [esp + 0x30], esi
add esi, eax
mov dword [esp + 0x4c], esi
add esi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], esi
lea edx, [eax + eax - 1]
imul edx, ecx
lea esi, [esi + edx*8]
lea edx, [esp + 0xc4]
mov edi, esi
add esi, 0x60
push edx
mov dword [esp + 0x90], edi
lea eax, [esi + 0x60]
mov dword [esp + 0x74], eax
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp + 0x18]
add esp, 8
lea edx, [esp + 0x1e0]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0xcc]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0xcc]
push edx
push 0
push 1
push eax
call dword [ecx + 0x20]
add esp, 0x18
lea eax, [esp + 0x1f8]
push 0
push eax
push 3
call fcn.100448e0
mov ecx, dword [ebx]
add esp, 0xc
lea edx, [esp + 0xc4]
push edx
push ebx
call dword [ecx + 0x34]
mov edx, dword [esp + 0xd0]
add esp, 8
mov eax, dword [ebx]
lea ecx, [esp + 0x100]
push ecx
mov ecx, dword [esp + 0xc8]
push edx
push ecx
push 0
push 1
push ebx
call dword [eax + 0x20]
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x11c]
mov dword [edi], edx
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x124]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x12c]
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
lea edx, [esp + 0x1f8]
push 0
push edx
push 3
call fcn.100448e0
mov ecx, dword [esp + 0x204]
mov edx, dword [esp + 0x208]
lea eax, [edi + 0x18]
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
fld qword [esp + 0x200]
lea eax, [esp + 0x118]
push 0
fstp qword [edi + 0x20]
fld qword [esp + 0x20c]
push eax
push 3
fstp qword [edi + 0x28]
call fcn.100448e0
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x128]
fld qword [edi + 0x28]
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], edx
fld qword [esp + 0x12c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
fstp qword [edi + 0x50]
fld qword [esp + 0x134]
fld qword [edi + 0x50]
fld qword [edi + 0x48]
fld qword [edi + 0x50]
fxch st(2)
fmul qword [edi + 0x28]
fxch st(3)
fstp qword [edi + 0x58]
fld qword [edi + 0x58]
fld qword [esp + 0x134]
fmul qword [edi + 0x20]
add esp, 0xc
fsubp st(4)
push ecx
fmul qword [eax]
fxch st(3)
fstp qword [edi + 0x30]
fxch st(3)
fmul qword [edi + 0x48]
fxch st(3)
fmul qword [edi + 0x20]
fxch st(3)
fsubp st(2)
fmul qword [eax]
fxch st(1)
fstp qword [edi + 0x38]
fsubp st(1)
fstp qword [edi + 0x40]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
call fcn.10045c40
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
mov edx, dword [ebx]
add esp, 0x10
push eax
mov eax, dword [esp + 0x10]
push edi
push ecx
push eax
push ebx
call dword [edx + 0x48]
mov eax, dword [esp + 0x20]
add esp, 0x14
fld qword [ebp + 8]
fld qword [edi]
lea ecx, [eax + eax*2]
shl ecx, 3
fld qword [edi + 8]
fxch st(1)
fsub qword [edi + ecx - 0x18]
fxch st(1)
fsub qword [edi + ecx - 0x10]
fld qword [edi + 0x10]
fsub qword [edi + ecx - 8]
fxch st(2)
fst qword [esp + 0x28]
fld st(1)
fxch st(1)
fmul qword [esp + 0x28]
fxch st(1)
fmul st(2)
fxch st(3)
fst qword [esp + 0x28]
fmul qword [esp + 0x28]
fxch st(3)
faddp st(1)
fxch st(2)
faddp st(2)
fxch st(1)
mov dword [esp + 0x10], 0
fsqrt
fcomp st(2)
fnstsw ax
test ah, 1
fstp st(0)
je 0x1000d7fb
mov eax, dword [esp + 0x30]
fld qword [eax + 8]
fld qword [eax + 0x10]
fmul qword [eax + ecx - 8]
fld qword [eax + ecx - 0x18]
fxch st(2)
fmul qword [eax + ecx - 0x10]
fxch st(2)
fmul qword [eax]
fxch st(2)
faddp st(1)
fxch st(1)
faddp st(1)
fcomp qword [0x100593b8]
fnstsw ax
test ah, 0x41
jne 0x1000d7fb
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
fcom qword [0x100593c0]
fnstsw ax
test ah, 0x41
jne 0x1000d80e
fstp qword [esp + 0x20]
jmp 0x1000d820
fstp st(0)
mov dword [esp + 0x20], 0xa0b5ed8d
mov dword [esp + 0x24], 0x3eb0c6f7
mov edx, dword [ebx]
lea eax, [esp + 0x54]
lea ecx, [esp + 0xf8]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push 0x400
push eax
push ecx
push 0
push 1
push ebx
call dword [edx + 0x88]
add esp, 0x20
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0xb8]
push 0
push ecx
mov edx, dword [eax]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0xcc]
push ecx
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
add esp, 0x18
push edx
mov edx, dword [esp + 0x14]
push ebx
push edi
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0xcc]
push edx
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xdc]
push edx
push eax
push ecx
call fcn.10048bb0
mov eax, dword [esp + 0x38]
add esp, 0x2c
xor edx, edx
test eax, eax
jle 0x1000d930
mov ecx, ebx
fld qword [ecx]
fld qword [ecx + 8]
fld qword [ecx + 0x10]
fxch st(2)
fst qword [esp + 0x28]
fxch st(1)
fst qword [esp + 0x20]
fxch st(1)
fmul qword [esp + 0x28]
fxch st(1)
fmul qword [esp + 0x20]
fld st(2)
fmul st(3)
fxch st(1)
faddp st(2)
faddp st(1)
fsqrt
fstp st(1)
fcom qword [0x100593c8]
fnstsw ax
test ah, 0x41
jne 0x1000d90f
fdivr qword [0x100593d0]
mov eax, ecx
mov ecx, 3
fld qword [eax]
fmul st(1)
add eax, 8
dec ecx
fstp qword [eax - 8]
jne 0x1000d916
mov ecx, eax
mov eax, dword [esp + 0xc]
inc edx
cmp edx, eax
fstp st(0)
jl 0x1000d8ce
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0xd4]
push edx
mov edx, dword [esp + 0x60]
push edi
push ecx
push 0
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.10026860
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x54]
add esp, 0x1c
lea ecx, [esp + 0xd4]
push edi
push ecx
push edx
push eax
call fcn.10026e30
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
add esp, 0x10
test eax, eax
mov dword [esp + eax*4 + 0x78], 4
mov dword [esp + eax*4 + 0x20], ecx
jne 0x1000d992
mov ecx, 1
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x64], 0
mov dword [esp + 0xa0], ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jle 0x1000ddf9
mov edi, dword [ebp + 0x20]
mov ebx, 1
sub ebx, eax
mov eax, dword [esp + 0x40]
sub eax, edi
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x94], eax
jmp 0x1000d9e5
mov ebx, dword [esp + 0xa8]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0xdc]
mov eax, dword [eax + edi]
push ecx
lea ecx, [esp + 0x94]
push ecx
mov edx, dword [eax]
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x50]
push 0
push ecx
lea ecx, [esp + 0xc4]
push ecx
push eax
call dword [edx + 0x28]
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0x60]
lea eax, [ebx*4]
add esp, 0x1c
mov dword [esp + eax + 0x78], edx
mov dword [esp + eax + 0x20], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x20]
push edi
push edx
mov edx, dword [esp + 0x80]
push eax
push ecx
push edx
push 0
call fcn.10004a70
mov edi, dword [edi]
add esp, 0x18
test edi, edi
je 0x1000dddd
lea eax, [esp + 0x6c]
push 0
lea ecx, [esp + 0xe4]
push eax
push ecx
push 0
push 0
push 0
push edi
call fcn.1001c6f0
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x78]
shl eax, 2
lea ecx, [esp + 0x48]
add esp, 0x1c
mov dword [esp + eax + 0x28], edx
mov edx, dword [esp + 0x9c]
sub ecx, eax
mov dword [ecx], edx
lea edx, [esp + 0x1c8]
mov dword [esp + 0x10], edx
xor ecx, ecx
mov edi, dword [esp + ecx + 0x78]
mov ebx, dword [esp + ecx + 0x20]
add edi, ebx
xor eax, eax
test edi, edi
mov dword [esp + 0x1c], edi
jle 0x1000dae4
mov edx, dword [esp + ecx + 0x28]
mov edi, dword [esp + ecx + 0xe0]
mov edx, dword [edx + eax*8]
mov dword [edi + eax*8], edx
mov edx, dword [esp + ecx + 0x28]
mov edx, dword [edx + eax*8 + 4]
mov dword [edi + eax*8 + 4], edx
mov edx, dword [esp + 0x1c]
inc eax
cmp eax, edx
jl 0x1000daba
mov edx, dword [esp + 0x10]
mov eax, dword [esp + ecx + 0x28]
mov edi, dword [esp + ecx + 0x78]
add ecx, 4
add edx, 0x10
mov ebx, dword [eax + edi*8 - 8]
cmp ecx, 8
mov dword [edx - 0x18], ebx
mov edi, dword [eax + edi*8 - 4]
mov dword [edx - 0x14], edi
mov edi, dword [esp + ecx + 0x1c]
mov dword [esp + 0x10], edx
mov ebx, dword [eax + edi*8]
mov dword [edx - 0x10], ebx
mov eax, dword [eax + edi*8 + 4]
mov dword [edx - 0xc], eax
jl 0x1000daa6
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c0]
push ecx
mov eax, dword [edx]
push eax
call fcn.10004b30
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x74]
add esp, 8
mov dword [esp + 0x10], ecx
test eax, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x74], eax
je 0x1000db50
mov dword [esp + 0x74], 1
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], 0
test ecx, ecx
jle 0x1000dd52
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x50], edx
lea ebx, [eax + 8]
mov eax, edx
mov edx, dword [esp + 0x30]
lea edi, [ecx + 0x10]
sub edx, ecx
sub eax, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], ebx
sub ecx, edx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xa4], ecx
jmp 0x1000dbb7
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xa4]
mov edx, dword [edi - 0x10]
push esi
mov dword [esi], edx
mov edx, dword [edi - 0xc]
mov dword [esi + 4], edx
mov edx, dword [edi - 8]
mov dword [esi + 8], edx
mov edx, dword [edi - 4]
mov dword [esi + 0xc], edx
mov edx, dword [edi]
mov dword [esi + 0x10], edx
mov edx, dword [edi + 4]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x54]
mov edx, dword [edx]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x54]
mov edx, dword [edx + 4]
mov dword [esi + 0x1c], edx
mov edx, dword [ecx + ebx]
mov dword [esi + 0x20], edx
mov ecx, dword [ecx + ebx + 4]
mov dword [esi + 0x24], ecx
mov edx, dword [eax + edi]
mov dword [esi + 0x28], edx
mov eax, dword [eax + edi + 4]
mov dword [esi + 0x2c], eax
mov ecx, dword [ebx - 8]
mov dword [esi + 0x48], ecx
mov edx, dword [ebx - 4]
mov dword [esi + 0x4c], edx
mov eax, dword [ebx]
mov edx, dword [esp + 0xb0]
mov dword [esi + 0x50], eax
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x90]
mov dword [esi + 0x54], ecx
mov ecx, dword [esp + 0x74]
fld qword [edx + edi]
push eax
push ecx
fst qword [esi + 0x58]
fld qword [esi + 0x28]
fmul qword [esi + 0x50]
fxch st(1)
fmul qword [esi + 0x20]
fsubp st(1)
fstp qword [esi + 0x30]
fld qword [esi + 0x18]
fmul qword [esi + 0x58]
fld qword [esi + 0x48]
fmul qword [esi + 0x28]
fsubp st(1)
fstp qword [esi + 0x38]
fld qword [esi + 0x48]
fmul qword [esi + 0x20]
fld qword [esi + 0x18]
fmul qword [esi + 0x50]
fsubp st(1)
fstp qword [esi + 0x40]
call fcn.100478e0
add esp, 0xc
mov dword [esp + 0x70], eax
test eax, eax
je 0x1000dde7
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], 0
jle 0x1000dd16
mov eax, dword [esp + 0x90]
lea ecx, [eax + 0x10]
mov eax, dword [esp + 0x98]
mov ebx, 3
add eax, 0x10
fld qword [eax - 8]
fld qword [eax - 0x10]
fmul qword [ecx - 0x10]
fld qword [eax]
fxch st(2)
fmul qword [ecx - 8]
fxch st(2)
fmul qword [ecx]
fxch st(2)
faddp st(1)
fxch st(1)
add eax, 0x20
add edx, 8
dec ebx
faddp st(1)
fadd qword [eax - 0x18]
fstp qword [edx - 8]
jne 0x1000dcb5
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x80]
add ecx, 0x18
lea edx, [edx + eax*8]
mov eax, dword [esp + 0x44]
inc ebx
mov dword [esp + 0x84], edx
cmp ebx, eax
mov dword [esp + 0x80], ebx
jl 0x1000dca6
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
add edi, 0x18
add ebx, 0x18
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x1c], ebx
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x50]
add ecx, 0x18
inc edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0xc]
cmp edx, ecx
mov dword [esp + 0x3c], edx
jl 0x1000dba9
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x1000dd69
mov dword [esp + 0x3c], 1
mov ebx, eax
mov dword [esp + 0x1c], eax
jmp 0x1000dd7a
mov ebx, ecx
mov dword [esp + 0x3c], ecx
imul ebx, eax
mov dword [esp + 0x1c], 1
xor edi, edi
test ebx, ebx
jle 0x1000ddbc
jmp 0x1000dd86
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x60]
push edx
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xdc]
push edx
push eax
push edi
push ecx
mov ecx, dword [esp + 0x50]
push ecx
call fcn.10025b20
add esp, 0x1c
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1000ddf1
add edi, dword [esp + 0x3c]
cmp edi, ebx
jl 0x1000dd82
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x14]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x18], edx
jl 0x1000d9d3
jmp 0x1000ddf9
mov dword [esp + 0x14], 4
jmp 0x1000ddf9
mov dword [esp + 0x14], 5
jmp 0x1000ddf9
mov dword [esp + 0x14], 6
mov edi, dword [esp + 0x40]
test edi, edi
je 0x1000de2a
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x1000de19
mov edx, dword [edi]
push edx
call sym.Gtinurbs.dll_GtDestroy
add esp, 4
add edi, 4
dec esi
jne 0x1000de08
mov eax, dword [esp + 0x68]
test eax, eax
je 0x1000de2a
push eax
call fcn.10003d40
add esp, 4
mov eax, dword [esp + 0x34]
push eax
call fcn.10003d40
mov ecx, dword [esp + 0x58]
add esp, 4
push ecx
call sym.Gtinurbs.dll_GtDestroy
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret