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

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
push eax
mov edi, ecx
mov dword [esp + 0x1c], 0
call fcn.0040ea90
add esp, 4
push 0x403e90
push eax
call fcn.0040e590
lea ecx, [esp + 0x2c]
push ecx
mov esi, eax
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
push 1
push 0
push 1
push esi
call fcn.00416970
push esi
call fcn.00408580
add esp, 0x2c
cmp byte [0x41b78c], 1
jbe 0x403f34
fld qword [esp + 0x30]
mov edx, dword [esp + 0x14]
sub esp, 8
fstp qword [esp]
push edx
push str.there_are__d_clusters__modularity___f_n
call dword [0x41d0ec]
add eax, 0x40
push eax
call dword [0x41d0f4]
add esp, 0x14
push 2
push 8
push 1
push 1
push 1
call fcn.00408280
mov esi, eax
xor eax, eax
add esp, 0x14
mov dword [esp + 0x64], eax
test edi, edi
jle 0x403f81
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + eax*4]
push 0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x24]
push ecx
push 1
push esi
mov dword [esp + 0x30], edx
call fcn.0040d4b0
mov eax, dword [esp + 0x78]
inc eax
add esp, 0x14
cmp eax, edi
mov dword [esp + 0x64], eax
jl 0x403f52
push esi
call fcn.00409730
add esp, 4
mov edi, eax
push esi
mov dword [esp + 0x24], edi
call fcn.00408580
mov ebx, dword [edi + 0x14]
mov edi, dword [edi + 0x18]
xor eax, eax
add esp, 4
cmp dword [esp + 0x14], eax
mov dword [esp + 0x64], eax
jle 0x4040e4
fld qword [esp + 0x70]
mov ecx, dword [ebx + eax*4]
mov eax, dword [ebx + eax*4 + 4]
sub esp, 0x10
fstp qword [esp + 8]
lea edx, [esp + 0x60]
fld qword [esp + 0x78]
sub eax, ecx
fstp qword [esp]
push edx
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x40]
push edx
lea edx, [edi + ecx*4]
push edx
push eax
push ebp
call fcn.00404bd0
fst qword [esp + 0x60]
add esp, 0x28
cmp byte [0x41b78c], 1
jbe 0x40402a
mov eax, dword [esp + 0x64]
mov ecx, dword [ebx + eax*4 + 4]
sub ecx, dword [ebx + eax*4]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x38]
fstp qword [esp]
push ecx
push str.nedges___d_ink0___f__ink1___f_n
call dword [0x41d0ec]
add eax, 0x40
push eax
call dword [0x41d0f4]
fld qword [esp + 0x54]
add esp, 0x1c
fcomp qword [esp + 0x28]
fnstsw ax
test ah, 5
mov eax, dword [esp + 0x64]
jp 0x4040d5
mov esi, dword [ebx + eax*4]
cmp esi, dword [ebx + eax*4 + 4]
jge 0x4040d5
lea ebx, [ebx]
mov edx, dword [edi + esi*4]
mov eax, dword [ebp + edx*4]
push eax
call fcn.004031b0
mov ecx, dword [edi + esi*4]
mov dword [ebp + ecx*4], eax
mov edx, dword [edi + esi*4]
mov eax, dword [ebp + edx*4]
add esp, 4
push eax
call fcn.004031b0
fld qword [esp + 0x44]
mov ecx, dword [edi + esi*4]
mov dword [ebp + ecx*4], eax
mov edx, dword [edi + esi*4]
mov eax, dword [ebp + edx*4]
mov ecx, dword [eax + 0x20]
fstp qword [ecx + 0x10]
mov edx, dword [eax + 0x20]
fld qword [esp + 0x4c]
inc esi
fstp qword [edx + 0x18]
mov ecx, dword [eax + 0x20]
fld qword [esp + 0x54]
add esp, 4
fstp qword [ecx + 0x20]
mov edx, dword [eax + 0x20]
fld qword [esp + 0x58]
fstp qword [edx + 0x28]
mov ecx, dword [eax + 0x20]
fld qword [ecx + 0x40]
fstp qword [ecx + 0x30]
mov ecx, dword [eax + 0x20]
fld qword [ecx + 0x48]
fstp qword [ecx + 0x38]
mov dword [eax + 8], 4
mov eax, dword [esp + 0x64]
cmp esi, dword [ebx + eax*4 + 4]
jl 0x404050
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
jl 0x403faf
mov eax, dword [esp + 0x20]
push eax
call fcn.00408580
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret