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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x7a39fc]
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [eax + 8]
push esi
mov dword [esp + 0x14], ebp
call fcn.004aed80
mov dword [eax + 0x6c], 1
mov ecx, dword [0x7a39e0]
mov ecx, dword [ecx + 4]
xor esi, esi
mov dword [esp + 0x18], esi
call fcn.005e9260
mov ebx, dword [esp + 0x8c]
mov dword [ebp + 0x1ac], ebx
fld dword [ebx + 4]
mov ecx, dword [ebx + 0x5c]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x78]
fst dword [esp + 0x10]
fcomp dword [0x73e798]
mov dword [esp + 0x50], edx
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x28], eax
mov eax, ecx
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 0x60]
mov dword [esp + 0x40], eax
fnstsw ax
mov dword [esp + 0x1c], ecx
test ah, 0x41
mov ecx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], esi
jp 0x4c1a91
mov dword [esp + 0x10], 0x3dcccccd
fld dword [esp + 0x24]
push edi
fsub dword [esp + 0x20]
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x84]
fst dword [esp + 0x40]
push eax
fstp dword [esp + 0x70]
mov dword [esp + 0x7c], 0
fld dword [esp + 0x34]
mov dword [esp + 0x80], 0
fsub dword [esp + 0x2c]
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x78], 0
fst dword [esp + 0x40]
fstp dword [esp + 0x74]
call fcn.004ab180
fld dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
fmul dword [eax]
mov edx, dword [esp + 0x40]
fstp dword [esp + 0x64]
fld dword [esp + 0x1c]
fmul dword [eax + 4]
fst dword [esp + 0x68]
fld dword [esp + 0x1c]
fmul dword [eax + 8]
lea eax, [esp + 0x88]
push eax
fstp dword [esp + 0x70]
mov dword [esp + 0x7c], 0
fstp dword [esp + 0x74]
mov dword [esp + 0x8c], ecx
fld dword [esp + 0x68]
mov dword [esp + 0x90], edx
fchs
mov dword [esp + 0x94], 0
fstp dword [esp + 0x78]
call fcn.004ab100
fdiv dword [esp + 0x20]
fadd qword [0x73f3d0]
call fcn.006fae8c
mov edx, dword [esp + 0x50]
mov edi, eax
mov eax, dword [esp + 0x54]
lea ecx, [ebx + 0x12c]
mov dword [ecx], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
lea eax, [ebx + 0x138]
mov dword [eax], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
lea edx, [ebx + 0x144]
mov dword [edx], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
lea ecx, [ebx + 0x150]
mov dword [ecx], edx
mov edx, dword [esp + 0x88]
mov dword [ecx + 4], eax
mov dword [esp + 0x44], edi
mov dword [ebx + 0x120], esi
mov dword [ebx + 0x124], edi
mov dword [ebx + 0x128], esi
mov dword [ecx + 8], edx
mov dword [ebx + 0x24], 1
lea eax, [edi + 0x24]
lea esi, [eax*8 + 0x10]
push esi
mov dword [esp + 0x40], eax
call fcn.006fa7e6
mov dword [esp + 0x50], eax
mov dword [ebx + 0x15c], eax
mov eax, dword [ebx + 0x18c]
add esp, 0x10
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x4c1c39
push esi
call fcn.006fa7e6
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [ebx + 0x188], 0
mov dword [ebx + 0x18c], eax
fld dword [esp + 0x28]
fsub dword [ebx + 0x170]
fld dword [esp + 0x2c]
fsub dword [ebx + 0x174]
fld dword [ebx + 0x178]
fchs
fld dword [esp + 0x20]
fsub dword [ebx + 0x17c]
fstp dword [esp + 0x44]
fld dword [esp + 0x24]
fsub dword [ebx + 0x180]
fstp dword [esp + 0x48]
fld dword [ebx + 0x184]
fchs
fstp dword [esp + 0x4c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fcomp dword [0x741870]
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 1
fstp st(0)
je 0x4c1ce4
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0x44]
fmul dword [esp + 0x44]
faddp st(1)
fcomp dword [0x741870]
fnstsw ax
test ah, 1
je 0x4c1ce4
mov eax, dword [ebx + 0x16c]
mov dword [ebp + 0x1b4], eax
mov esi, dword [ebx + 0x168]
add esi, 2
mov dword [esp + 0x14], esi
jmp 0x4c1d04
mov eax, dword [ebx + 0x16c]
test eax, eax
je 0x4c1cf4
mov dword [ebp + 0x1b4], eax
mov ecx, ebp
call fcn.004bbc50
lea ecx, [edi + 2]
mov dword [esp + 0x14], ecx
mov esi, ecx
mov dword [ebx + 0x164], 0x41200000
mov edx, dword [0x7a39e0]
mov ecx, dword [edx + 4]
call fcn.005e9260
sub eax, dword [esp + 0x50]
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [0x745dbc]
mov ebp, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, 1
sbb ebp, edx
cmp ecx, eax
jne 0x4c1d61
cmp dword [ebx + 0x84], eax
jne 0x4c1d61
push str.we_can_not_return_a_closest_result_if_points_are_reversed.
push 2
mov ecx, ebx
call fcn.005b5e90
mov ecx, dword [0x745dc4]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [eax + 0x1d0], ecx
mov dword [eax + 0x1cc], ecx
mov eax, dword [ebx + 0x190]
inc edi
cmp eax, edi
jle 0x4c1d84
mov dword [ebx + 0x190], edi
cmp esi, dword [esp + 0x30]
mov edx, dword [ebx + 0x190]
mov dword [esp + 0x34], edx
jge 0x4c1ee7
jmp 0x4c1da0
mov eax, dword [esp + 0x10]
cmp eax, dword [0x745dbc]
jne 0x4c1ee7
mov esi, dword [esp + 0x98]
cmp ebp, esi
mov edi, dword [esp + 0x94]
ja 0x4c1ef5
jb 0x4c1dd2
cmp dword [esp + 0x44], edi
jae 0x4c1ef5
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
xor edx, edx
push edx
inc eax
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
push edx
add eax, 2
push eax
push edx
push edx
mov dword [esp + 0x2c], eax
mov dword [ecx + 0x1d0], edx
mov dword [ecx + 0x1cc], edx
call fcn.004c0930
cmp eax, 1
jne 0x4c1e16
mov ecx, dword [0x745dc0]
mov dword [esp + 0x10], ecx
mov edx, dword [0x7a39e0]
mov ecx, dword [edx + 4]
call fcn.005e9260
mov ecx, dword [esp + 0x54]
mov ebp, edx
mov edx, dword [esp + 0x50]
mov esi, eax
mov eax, dword [ebx + 0x24]
sub esi, edx
sbb ebp, ecx
mov ecx, 1
cmp eax, ecx
mov dword [esp + 0x44], esi
jne 0x4c1ed0
mov eax, dword [ebx + 0x188]
cmp eax, ecx
mov dword [esp + 0x30], eax
jle 0x4c1ed0
mov eax, dword [0x745dc0]
cmp dword [esp + 0x10], eax
je 0x4c1ed0
cmp dword [esp + 0x1c], ecx
jne 0x4c1ed0
mov ecx, dword [esp + 0x98]
push 0
push 4
push ecx
push edi
call fcn.006fc710
cmp ebp, edx
ja 0x4c1e9e
jb 0x4c1e83
cmp esi, eax
jae 0x4c1e9e
cmp ebp, dword [esp + 0x98]
jb 0x4c1ed0
ja 0x4c1e92
cmp esi, edi
jb 0x4c1ed0
mov edx, dword [esp + 0x34]
cmp edx, dword [ebx + 0x190]
jne 0x4c1ed0
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x1cc], 1
je 0x4c1eb5
mov ecx, dword [0x745dc0]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x30]
mov esi, dword [ebx + 0x18c]
mov edi, dword [ebx + 0x15c]
lea ecx, [eax + eax]
mov dword [ebx + 0x160], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
add eax, 0x24
cmp ecx, eax
mov dword [esp + 0x30], eax
jl 0x4c1da0
mov edi, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x164], 0x442f0000
cmp edx, dword [0x745dc0]
je 0x4c1fdc
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x30]
jge 0x4c1f68
cmp dword [esp + 0x1c], 1
jne 0x4c1fdc
push 0
push 0x28
push esi
push edi
call fcn.006fc710
cmp ebp, edx
ja 0x4c1f7d
jb 0x4c1f3b
cmp dword [esp + 0x44], eax
jae 0x4c1f7d
push 0
push 0xa
push esi
push edi
call fcn.006fc710
cmp ebp, edx
jb 0x4c1fdc
ja 0x4c1f5a
cmp dword [esp + 0x44], eax
jb 0x4c1fdc
mov ecx, dword [esp + 0x34]
cmp ecx, dword [ebx + 0x190]
jne 0x4c1fdc
jmp 0x4c1f7d
push str.Exceeded_limits:Max_search_deapth
push 2
mov ecx, ebx
call fcn.005b5e90
cmp dword [esp + 0x1c], 1
jne 0x4c1fd3
push 0
push 0x28
push esi
push edi
call fcn.006fc710
cmp ebp, edx
jb 0x4c1fa2
ja 0x4c1f94
cmp dword [esp + 0x44], eax
jb 0x4c1fa2
push str.Exceeded_limits:Time_limit
push 2
mov ecx, ebx
call fcn.005b5e90
push 0
push 0xa
push esi
push edi
call fcn.006fc710
cmp ebp, edx
jb 0x4c1fd3
ja 0x4c1fb9
cmp dword [esp + 0x44], eax
jb 0x4c1fd3
mov edx, dword [esp + 0x34]
cmp edx, dword [ebx + 0x190]
jne 0x4c1fd3
push 0x7455e8
push 2
mov ecx, ebx
call fcn.005b5e90
mov eax, dword [0x745dc4]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
cmp ecx, dword [0x745dbc]
jne 0x4c2076
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, edx
mov dword [esp + 0x74], edx
mov edx, eax
mov dword [esp + 0x78], eax
mov dword [ebx + 0x170], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x174], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x178], eax
mov eax, ecx
mov dword [ebx + 0x17c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x74], ecx
mov ecx, edx
mov dword [ebx + 0x168], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], 0
mov edx, dword [esp + 0x7c]
mov dword [ebx + 0x180], ecx
mov dword [ebx + 0x184], edx
mov ecx, dword [eax + 0x1b4]
mov dword [ebx + 0x16c], ecx
mov dword [eax + 0x1b4], 0
jmp 0x4c20dd
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0x1b4]
push edx
call fcn.006fa390
add esp, 4
xor eax, eax
mov dword [esi + 0x1b4], eax
mov ecx, eax
mov edx, eax
mov dword [ebx + 0x170], ecx
mov dword [ebx + 0x17c], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [ebx + 0x174], edx
mov dword [ebx + 0x180], ecx
mov dword [ebx + 0x178], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [ebx + 0x184], edx
mov dword [ebx + 0x168], eax
mov dword [ebx + 0x16c], eax
mov eax, dword [esp + 0x10]
cmp eax, dword [0x745dc0]
jne 0x4c21a0
mov esi, dword [ebx + 0x160]
lea ecx, [esi*8]
push ecx
call fcn.006fa7e6
mov edx, dword [esp + 0x2c]
mov ebp, dword [ebx + 0x15c]
mov ecx, dword [esp + 0x30]
mov dword [eax], edx
mov edx, 1
add esp, 4
cmp esi, edx
mov dword [eax + 4], ecx
jle 0x4c2191
mov edi, ebp
lea ecx, [eax + 0xc]
sub edi, eax
fild dword [edi + ecx]
inc edx
fld dword [esp + 0x5c]
add ecx, 8
cmp edx, esi
fmul st(1)
fstp dword [esp + 0x80]
fld dword [esp + 0x60]
fmul st(1)
fstp dword [esp + 0x84]
fstp st(0)
fild dword [ebp + edx*8 - 8]
fld dword [esp + 0x60]
fmul st(1)
fld dword [esp + 0x6c]
fmul st(2)
fstp dword [esp + 0x78]
fadd dword [esp + 0x20]
fstp st(1)
fld dword [esp + 0x78]
fadd dword [esp + 0x24]
fstp dword [esp + 0x54]
fadd dword [esp + 0x80]
fld dword [esp + 0x54]
fadd dword [esp + 0x84]
fst dword [esp + 0x48]
fxch st(1)
fstp dword [ecx - 0xc]
fstp dword [ecx - 8]
jl 0x4c2126
lea edx, [esi + esi]
mov dword [ebx + 0x94], edx
mov dword [ebx + 0x98], eax
mov eax, dword [esp + 0x10]
cmp eax, dword [0x745dbc]
pop edi
je 0x4c21c4
mov ecx, dword [esp + 0x38]
push ecx
call fcn.006fa390
add esp, 4
mov dword [ebx + 0x18c], 0
mov edx, dword [esp + 0x3c]
push edx
call fcn.006fa390
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x15c], 0
mov eax, dword [0x745dc0]
add esp, 4
cmp esi, eax
jne 0x4c21f1
mov ecx, dword [esp + 0x14]
call fcn.004c1670
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0xc