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

Disassembly:
sub esp, 0x44
fldz
push ebx
mov eax, 0xa
fst qword [esp + 0x34]
push ebp
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], eax
xor esi, esi
mov eax, 0x401b20
push edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x24], 0x401b20
mov dword [esp + 0x1c], esi
test eax, eax
jne 0x401cbd
mov dword [esp + 0x24], 0x401b20
mov ebp, dword [esp + 0x60]
cmp ebp, esi
je 0x401d49
mov ebx, dword [esp + 0x58]
cmp ebx, 4
jl 0x401d29
lea edx, [ebx - 4]
shr edx, 2
inc edx
lea ecx, [ebp + 0x10]
lea esi, [edx*4]
fcom qword [ecx - 0x10]
fnstsw ax
test ah, 5
jp 0x401cf2
fstp st(0)
fld qword [ecx - 0x10]
fcom qword [ecx - 8]
fnstsw ax
test ah, 5
jp 0x401d01
fstp st(0)
fld qword [ecx - 8]
fcom qword [ecx]
fnstsw ax
test ah, 5
jp 0x401d0e
fstp st(0)
fld qword [ecx]
fcom qword [ecx + 8]
fnstsw ax
test ah, 5
jp 0x401d1d
fstp st(0)
fld qword [ecx + 8]
add ecx, 0x20
sub edx, 1
jne 0x401ce3
fst qword [esp + 0x40]
cmp esi, ebx
jge 0x401d53
fcom qword [ebp + esi*8]
fnstsw ax
test ah, 5
jp 0x401d3e
fstp st(0)
fld qword [ebp + esi*8]
inc esi
cmp esi, ebx
jl 0x401d2d
fstp qword [esp + 0x40]
jmp 0x401d55
fstp st(0)
fld1
fstp qword [esp + 0x40]
jmp 0x401d55
fstp st(0)
mov esi, dword [esp + 0x6c]
fld qword [esp + 0x78]
mov ebx, dword [esp + 0x68]
push esi
sub esp, 8
fstp qword [esp]
push ebx
push edi
call fcn.0042d300
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x78]
add esp, 0x14
push ecx
mov ecx, dword [esp + 0x5c]
mov ebp, eax
mov eax, dword [esp + 0x64]
push edx
push eax
push ecx
mov dword [esp + 0x48], ebp
call fcn.00401bc0
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
fst qword [edx]
add esp, 0x10
fstp qword [ebp + 8]
cmp dword [ebx], 0
jne 0x401dbe
lea eax, [edi*8]
push eax
call sub.gvc.dll_gmalloc
add esp, 4
mov dword [ebx], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [ebx]
lea eax, [edi*8]
push eax
push ecx
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push 0x28
call sub.gvc.dll_gmalloc
add esp, 4
mov ebx, eax
push 0x28
mov dword [esp + 0x24], ebx
call sub.gvc.dll_gmalloc
add esp, 4
mov dword [esp + 0x18], eax
mov dword [ebx], ebp
mov dword [esp + 0x2c], 1
test esi, esi
jle 0x402103
inc dword [esp + 0x1c]
cmp byte [0x431a44], 0xa
jbe 0x401e34
mov eax, dword [esp + 0x1c]
push eax
push str.level_d_n
call dword [sym.imp.MSVCR90.dll___iob_func]
mov ebp, dword [sym.imp.MSVCR90.dll_fprintf]
add eax, 0x40
push eax
call ebp
add esp, 0xc
jmp 0x401e3a
mov ebp, dword [sym.imp.MSVCR90.dll_fprintf]
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
jle 0x4020d1
fild dword [esp + 0x5c]
call sub.MSVCR90.dll__CIsqrt
fmul qword [esp + 0x40]
fstp qword [esp + 0x48]
nop
cmp byte [0x431a44], 0xa
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + ebx*4]
jbe 0x401ed9
push ebx
push str.candidate__d_at_
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call ebp
add esp, 0xc
xor ebx, ebx
test edi, edi
jle 0x401eb5
jmp 0x401e90
mov edx, dword [esi + 0x14]
fld qword [edx + ebx*8]
sub esp, 8
fstp qword [esp]
push str._f_
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call ebp
inc ebx
add esp, 0x10
cmp ebx, edi
jl 0x401e90
fld qword [esi + 8]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esi + 0x18]
fstp qword [esp]
push str.__width___f__dist___f_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call ebp
add esp, 0x18
fld qword [esp + 0x48]
mov eax, dword [esp + 0x70]
fmul qword [esi + 0x18]
fadd qword [esi + 8]
fcomp qword [eax]
fnstsw ax
test ah, 5
jnp 0x4020ba
mov ecx, edi
mov ebx, 1
shl ebx, cl
lea ecx, [ebx*4]
push ecx
mov dword [esp + 0x40], ebx
call sub.gvc.dll_gmalloc
add esp, 4
xor ebp, ebp
mov dword [esi + 0x24], eax
test ebx, ebx
jle 0x4020b4
mov edi, edi
mov edx, dword [esp + 0x6c]
fld qword [esi + 0x18]
fmul qword [0x4647d8]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push ebp
push edx
sub esp, 8
fstp qword [esp]
push eax
push ecx
call fcn.0042d490
mov edx, dword [esi + 0x24]
mov dword [edx + ebp*4], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + ebp*4]
mov ecx, dword [esp + 0x78]
mov ebx, dword [edx + 0x14]
push eax
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x78]
push ecx
push eax
call fcn.00401bc0
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + ebp*4]
mov ecx, dword [esp + 0x98]
fst qword [edx + 8]
fcom qword [ecx]
add esp, 0x28
fnstsw ax
test ah, 0x41
jne 0x40202e
cmp byte [0x431a44], 0xa
fst qword [ecx]
jbe 0x402009
sub esp, 8
fstp qword [esp]
push str.new_distmax_f__pt
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
xor ebx, ebx
test edi, edi
jle 0x401fef
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x14]
fld qword [edx + ebx*8]
sub esp, 8
fstp qword [esp]
push str._f_
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
inc ebx
add esp, 0x10
cmp ebx, edi
jl 0x401fc0
push 0x464620
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
jmp 0x40200b
fstp st(0)
lea eax, [edi*8]
push eax
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x14]
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
push edx
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x402046
fld qword [esp + 0x48]
fmul qword [esi + 0x18]
fmul qword [0x4647d8]
faddp st(1)
fcomp qword [ecx]
fnstsw ax
test ah, 5
jnp 0x4020a9
mov ebx, dword [esp + 0x28]
cmp ebx, dword [esp + 0x14]
jl 0x402097
fild dword [esp + 0x14]
fmul qword [0x4647c8]
fld qword [0x4647c0]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x40206d
fstp st(0)
jmp 0x40206f
fstp st(1)
call fcn.00431b00
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esp + 0x18]
lea edx, [ecx*4]
push edx
push eax
mov dword [esp + 0x1c], ecx
call sub.gvc.dll_grealloc
add esp, 8
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + ebp*4]
mov eax, dword [esp + 0x18]
mov dword [eax + ebx*4], edx
inc ebx
mov dword [esp + 0x28], ebx
inc ebp
cmp ebp, dword [esp + 0x3c]
jl 0x401f20
mov ebp, dword [sym.imp.MSVCR90.dll_fprintf]
mov ebx, dword [esp + 0x30]
inc ebx
cmp ebx, dword [esp + 0x2c]
mov dword [esp + 0x30], ebx
jl 0x401e60
mov esi, dword [esp + 0x6c]
cmp dword [esp + 0x1c], esi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jl 0x401e06
cmp byte [0x431a44], 0xa
jbe 0x40212a
push 0x464624
push str._tmp_1.m
call dword [sym.imp.MSVCR90.dll_fopen]
mov edx, dword [esp + 0x40]
push edx
push eax
call fcn.0042dae0
add esp, 0x10
mov eax, dword [esp + 0x38]
push eax
call fcn.0042d3c0
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call esi
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret