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

Disassembly:
push 0xffffffffffffffff
push 0x10143939
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1019c828]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x24], ebx
mov eax, dword [ebx + 0x38]
cmp dword [eax + 0x274], 0
je 0x10043ceb
fld dword [esp + 0x120]
lea edx, [esp + 0xe0]
fstp dword [esp + 0xb0]
push edx
fld dword [esp + 0x128]
lea edx, [esp + 0xb4]
fstp dword [esp + 0xb8]
mov eax, dword [eax + 0xe8]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x6c]
call eax
test al, al
je 0x10043ceb
mov ecx, dword [ebx + 0x38]
fld dword [0x1015546c]
mov eax, dword [ecx + 0x274]
fstp dword [esp + 0x20]
mov edx, dword [eax + 0xc0]
xor ecx, ecx
cmp dword [eax + 0xb4], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], ecx
jbe 0x10043ceb
jmp 0x10043380
mov edx, dword [eax + 0xbc]
test edx, edx
je 0x10043390
movzx eax, word [edx + ecx*2]
jmp 0x10043397
movzx eax, word [eax + 0xac]
movzx edi, ax
sub edi, 1
xor esi, esi
test edi, edi
jle 0x100434cd
mov eax, dword [esp + 0x44]
fld dword [0x1015546c]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x38]
mov ebp, dword [eax + 0x274]
mov ebp, dword [ebp + 0x58]
lea edx, [ecx + esi*4]
mov ecx, dword [edx]
lea ecx, [ecx + ecx*2]
lea ecx, [ebp + ecx*4]
mov ebp, dword [ecx]
mov dword [esp + 0x4c], ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x50], ebp
mov ecx, dword [ecx + 8]
mov dword [esp + 0x54], ecx
mov edx, dword [edx + 4]
mov ecx, dword [eax + 0x274]
mov ecx, dword [ecx + 0x58]
lea edx, [edx + edx*2]
lea ecx, [ecx + edx*4]
mov edx, dword [ecx]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x68], edx
mov ecx, dword [ecx + 8]
fstp dword [esp + 0x48]
fild dword [ebx + 0xc]
push eax
lea edx, [esp + 0x50]
push edx
push ecx
fstp dword [esp]
mov dword [esp + 0x78], ecx
call fcn.10030c20
fstp dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0xfc]
push ecx
call fcn.10030d80
add esp, 0x20
test al, al
je 0x100434be
fld dword [esp + 0x48]
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x100434bc
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x100434bc
mov edx, dword [esp + 0x4c]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
jmp 0x100434be
fstp st(0)
add esi, 1
cmp esi, edi
jl 0x100433a7
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x38]
mov eax, dword [edx + 0x274]
add dword [esp + 0x44], 4
add ecx, 1
cmp ecx, dword [eax + 0xb4]
mov dword [esp + 0x18], ecx
jb 0x10043380
fld dword [0x1015546c]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x10043ceb
xor ecx, ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], ecx
mov eax, edx
mov eax, dword [eax + 0x274]
cmp dword [eax + 0xb4], ecx
mov ebp, dword [eax + 0xc0]
mov dword [esp + 0x118], ecx
mov dword [esp + 0x18], ecx
jbe 0x10043611
nop
mov edx, dword [eax + 0xbc]
test edx, edx
je 0x10043550
movzx eax, word [edx + ecx*2]
jmp 0x10043557
movzx eax, word [eax + 0xac]
movzx edi, ax
sub edi, 1
xor esi, esi
test edi, edi
jle 0x100435f2
mov byte [esp + 0xdc], 0
nop
mov edx, dword [ebx + 0x38]
mov eax, dword [edx + 0x274]
mov edx, dword [eax + 0x58]
mov ecx, dword [ebp]
mov eax, dword [ecx + esi*4]
lea ecx, [ecx + esi*4]
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*2]
mov ebx, dword [edx + eax*4]
lea eax, [edx + eax*4]
mov dword [esp + 0xc4], ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
lea ecx, [ecx + ecx*2]
mov dword [esp + 0xcc], eax
lea eax, [edx + ecx*4]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xd0], edx
mov edx, dword [eax + 8]
lea eax, [esp + 0xc4]
mov dword [esp + 0xd4], ecx
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xdc], edx
call fcn.10042de0
mov ebx, dword [esp + 0x24]
add esi, 1
cmp esi, edi
jl 0x10043570
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x38]
mov eax, dword [edx + 0x274]
add ecx, 1
add ebp, 4
cmp ecx, dword [eax + 0xb4]
mov dword [esp + 0x18], ecx
jb 0x10043540
fldz
mov ecx, dword [ebx + 0x38]
fst dword [esp + 0x7c]
xor eax, eax
fst dword [esp + 0x80]
fstp dword [esp + 0x84]
mov ecx, dword [ecx + 0x274]
cmp dword [ecx + 0x5c], eax
jle 0x100436d9
mov edi, dword [ebx + 0x38]
xor ecx, ecx
mov edi, edi
mov esi, dword [edi + 0x274]
lea ebp, [eax + 1]
mov eax, ebp
cdq
idiv dword [esi + 0x5c]
mov esi, dword [esi + 0x58]
add ecx, 0xc
lea eax, [edx + edx*2]
add eax, eax
add eax, eax
fld dword [eax + esi + 8]
fadd dword [esi + ecx - 4]
fld dword [esi + ecx - 8]
fsub dword [eax + esi + 4]
fmulp st(1)
fadd dword [esp + 0x7c]
fstp dword [esp + 0x7c]
mov edx, dword [edi + 0x274]
mov edx, dword [edx + 0x58]
fld dword [edx + ecx - 4]
fsub dword [edx + eax + 8]
fld dword [edx + eax]
fadd dword [edx + ecx - 0xc]
fmulp st(1)
fadd dword [esp + 0x80]
fstp dword [esp + 0x80]
mov edx, dword [edi + 0x274]
mov edx, dword [edx + 0x58]
fld dword [edx + eax + 4]
fadd dword [edx + ecx - 8]
fld dword [edx + ecx - 0xc]
fsub dword [edx + eax]
mov edx, edi
mov eax, ebp
fmulp st(1)
fadd dword [esp + 0x84]
fstp dword [esp + 0x84]
mov edx, dword [edx + 0x274]
cmp eax, dword [edx + 0x5c]
jl 0x10043640
lea eax, [esp + 0x7c]
push eax
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
push 0x30
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
xor ebp, ebp
cmp eax, ebp
je 0x1004370a
mov dword [eax], 1
mov dword [eax + 0x24], ebp
mov dword [eax + 0x28], ebp
mov dword [eax + 0x2c], ebp
mov ebp, eax
mov dword [esp + 0x18], eax
jmp 0x1004370e
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x58]
lea esi, [ebp + 0x20]
push ecx
mov ecx, esi
mov byte [esp + 0x11c], 0
call fcn.10036a50
lea edx, [esp + 0x70]
push edx
mov ecx, esi
call fcn.10036a50
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xa4]
push ecx
push ebp
mov ecx, ebx
call fcn.10042e90
test al, al
jne 0x10043731
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x118], 2
xor ebp, ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x1004377e
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jge 0x100437bf
mov eax, dword [esi + 4]
test eax, eax
je 0x100437a2
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x100437a8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
add edx, edi
push edx
lea ecx, [esp + 0x38]
call fcn.10036a50
add ebp, 1
add edi, 0xc
jmp 0x10043762
mov ebp, dword [esi + 8]
cmp dword [esi + 4], ebp
jbe 0x100437cd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
mov dword [esp + 0x24], edi
jbe 0x100437df
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebp
je 0x1004382d
mov edi, dword [esi + 8]
mov ecx, edi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esp + 0x24]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, edi
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4]
mov eax, ebp
je 0x1004382a
sub ecx, ebp
lea esp, [esp]
mov ebp, dword [eax]
mov dword [eax + ecx], ebp
mov ebp, dword [eax + 4]
mov dword [eax + ecx + 4], ebp
mov ebp, dword [eax + 8]
mov dword [eax + ecx + 8], ebp
add eax, 0xc
cmp eax, edi
jne 0x10043810
mov dword [esi + 8], edx
mov ebp, dword [esp + 0x38]
test ebp, ebp
mov ecx, dword [esp + 0x3c]
jne 0x1004383d
xor edi, edi
jmp 0x10043851
mov edx, ecx
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
add edi, 0xffffffff
test edi, edi
jle 0x100438ab
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
mov dword [esp + 0x20], eax
jmp 0x1004386d
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
test ebp, ebp
je 0x10043887
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10043891
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
add ebp, edx
push ebp
mov ecx, esi
call fcn.10036a50
sub dword [esp + 0x20], 0xc
sub edi, 1
test edi, edi
jg 0x10043865
mov edi, dword [esp + 0x18]
nop
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xa4]
push ecx
push edi
mov ecx, ebx
call fcn.10042e90
test al, al
jne 0x100438b0
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
je 0x1004395d
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 7
jbe 0x1004395d
push 0x30
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov byte [esp + 0x118], 3
je 0x10043923
lea edx, [edi + 4]
push edx
lea ecx, [esp + 0x8c]
push ecx
push ebp
push edi
mov ecx, eax
call fcn.10046450
mov esi, eax
jmp 0x10043925
xor esi, esi
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x10043936
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0xa4]
cmp eax, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
je 0x10043956
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
jmp 0x10043ced
cmp edi, ebp
je 0x10043983
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x10043971
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x5c]
push eax
mov ecx, ebx
call fcn.10042030
test al, al
jne 0x10043983
jmp 0x100439a0
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x74]
push edx
mov ecx, ebx
call fcn.10042030
test al, al
jne 0x100439a0
fldz
mov eax, dword [ebx + 0x38]
fst dword [esp + 0x94]
fld1
fstp dword [esp + 0x98]
fstp dword [esp + 0x9c]
mov eax, dword [eax + 0x274]
cmp dword [eax + 0x5c], 2
jbe 0x10043b02
mov eax, dword [eax + 0x58]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x64], ecx
fld dword [esp + 0x64]
fld dword [esp + 0x4c]
mov dword [esp + 0x54], edx
fld st(0)
mov edx, dword [eax + 0x1c]
fsubp st(2)
mov eax, dword [eax + 0x20]
fxch st(1)
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
fstp dword [esp + 0x20]
fld dword [esp + 0x68]
fld dword [esp + 0x50]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x6c]
fld dword [esp + 0x54]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fsubrp st(3)
fxch st(2)
fstp dword [esp + 0x44]
fsubr dword [esp + 0x2c]
fstp dword [esp + 0x1c]
fsubr dword [esp + 0x30]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fld st(0)
fld dword [esp + 0x24]
fld st(0)
fmulp st(2)
fld dword [esp + 0x18]
fld st(0)
fld dword [esp + 0x48]
fld st(0)
fmulp st(2)
fxch st(4)
fsubrp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fld dword [esp + 0x44]
fld st(0)
fmulp st(4)
fxch st(2)
fsubrp st(3)
fxch st(2)
fstp dword [esp + 0x24]
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fld dword [esp + 0x24]
mov dword [esp + 0x94], ecx
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
fld dword [esp + 0x18]
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], eax
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
push 0x1c
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebp
je 0x10043b40
mov dword [eax], ebp
mov edx, dword [esp + 0x58]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x60]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x78]
mov dword [eax + 0x18], ecx
mov esi, eax
jmp 0x10043b42
xor esi, esi
mov edx, dword [ebx + 0x38]
fild dword [ebx + 0xc]
push edx
lea eax, [esp + 0x5c]
push eax
push ecx
fstp dword [esp]
call fcn.10030c20
fstp dword [esp + 0x2c]
add esp, 0xc
fld dword [esp + 0x88]
lea ecx, [esp + 0x28]
fsub dword [esp + 0x58]
push ecx
fstp dword [esp + 0x20]
fld dword [esp + 0x90]
fsub dword [esp + 0x60]
fstp dword [esp + 0x28]
fld dword [esp + 0x94]
fsub dword [esp + 0x64]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fstp dword [esp + 0x2c]
fld dword [esp + 0x28]
fstp dword [esp + 0x30]
fld dword [esp + 0x1c]
fstp dword [esp + 0x34]
call sym.rt3d.dll_public:_float___stdcall_POINT3D::Length_void_const
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
jne 0x10043bf2
push 0x28
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov byte [esp + 0x118], 4
je 0x10043923
lea edx, [esp + 0x94]
push edx
push ebp
push 1
push esi
mov ecx, eax
call fcn.10046560
mov esi, eax
jmp 0x10043925
mov eax, dword [ebx + 0x38]
fild dword [ebx + 0xc]
push eax
lea ecx, [esp + 0x74]
push ecx
push ecx
fstp dword [esp]
call fcn.10030c20
fstp dword [esp + 0x2c]
add esp, 0xc
fld dword [esp + 0x88]
lea edx, [esp + 0xb8]
fsub dword [esp + 0x70]
push edx
fstp dword [esp + 0x20]
fld dword [esp + 0x90]
fsub dword [esp + 0x78]
fstp dword [esp + 0x28]
fld dword [esp + 0x94]
fsub dword [esp + 0x7c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fstp dword [esp + 0xbc]
fld dword [esp + 0x28]
fstp dword [esp + 0xc0]
fld dword [esp + 0x1c]
fstp dword [esp + 0xc4]
call sym.rt3d.dll_public:_float___stdcall_POINT3D::Length_void_const
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
jne 0x10043cad
push 0x28
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov byte [esp + 0x118], 5
je 0x10043923
lea ecx, [esp + 0x94]
push ecx
push ebp
push ebp
push esi
mov ecx, eax
call fcn.10046560
mov esi, eax
jmp 0x10043925
push 0x30
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov byte [esp + 0x118], 6
je 0x10043923
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x8c]
push ecx
push ebp
push esi
mov ecx, eax
call fcn.10046450
mov esi, eax
jmp 0x10043925
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8