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

Disassembly:
sub esp, 0x3e8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x400]
mov ebx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
lea ecx, [esp + 0x44]
xor ebp, ebp
xor esi, esi
push ecx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xac], eax
mov dword [esp + 0x88], ebp
mov dword [esp + 0x90], esi
call fcn.004565a0
lea edx, [esp + 0x58]
add esp, 4
push edx
call fcn.004565a0
add esp, 4
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.00456980
lea ecx, [esp + 0x5c]
push 0xa
push ecx
call fcn.00456e30
add esp, 0x10
test eax, eax
jne 0x40e6ca
lea edx, [esp + 0xd8]
push edx
mov eax, ebx
call fcn.00410180
add esp, 4
mov ebp, eax
mov dword [esp + 0x84], eax
mov ebx, dword [esp + 0xa8]
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.00456980
lea ecx, [esp + 0x5c]
push 0xa
push ecx
call fcn.00456e30
add esp, 0x10
test eax, eax
jne 0x40e70a
lea edx, [esp + 0x268]
push edx
mov eax, ebx
call fcn.00410180
add esp, 4
mov esi, eax
mov dword [esp + 0x8c], eax
lea ecx, [ebp + ebp*2 + 3]
add ecx, ecx
lea eax, [esi + esi*2 + 3]
add eax, eax
lea ebp, [eax + ecx]
mov dword [esp + 0xac], eax
mov eax, ebp
imul eax, eax, 0xb0
push eax
mov dword [esp + 0x8c], ecx
call fcn.004b7263
xor ebx, ebx
add esp, 4
mov dword [esp + 0x64], eax
cmp ebp, ebx
jle 0x40e75a
mov esi, eax
mov eax, esi
call fcn.0040a620
mov dword [esi + 0xa4], ebx
add esi, 0xb0
dec ebp
jne 0x40e744
mov ecx, dword [esp + 0x3fc]
add ecx, 0x24
push 0x51a9e0
push ecx
call fcn.004b80e6
lea edx, [esp + 0xc0]
push edx
mov esi, eax
call fcn.004565a0
add esp, 0xc
push 0xa
push edi
call fcn.00457f70
mov ebp, eax
lea eax, [esp + 0xc0]
push 0xa
push eax
call fcn.00456980
lea ecx, [ebp - 1]
push ecx
lea edx, [esp + 0xcc]
push edx
mov eax, edx
push eax
call fcn.00459240
add esp, 0x1c
lea ecx, [esp + 0xb8]
push edi
push ecx
call fcn.00456920
xor edx, edx
test eax, eax
setg dl
lea eax, [esp + 0xc0]
push eax
sub ebp, edx
call fcn.00456900
add esp, 0xc
push ebp
push str.nfs:_commencing_snfs_on_c_d:
push esi
call fcn.00443960
add esp, 0xc
push edi
push 0x5ad6dc
push esi
call fcn.00457f00
add esp, 0xc
push esi
call fcn.004b8276
xor ebx, ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x98], eax
mov edi, edi
test eax, eax
jne 0x40e84b
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0xd8]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x84]
mov ebp, 4
mov dword [esp + 0x74], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x3c], ebp
jmp 0x40e886
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x268]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x8c]
mov ebp, 4
mov dword [esp + 0x74], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], ebp
jmp 0x40e886
mov ecx, dword [esp + 0x74]
mov eax, ecx
cdq
idiv ebp
mov dword [esp + 0x78], edx
mov dword [esp + 0x20], eax
test edx, edx
jne 0x40e953
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.00458440
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x60]
push ecx
mov edx, ecx
push edx
call fcn.00459240
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov esi, ebx
imul esi, esi, 0xb0
add esi, dword [esp + 0x78]
lea ecx, [esp + 0x68]
mov dword [esi + 0x20], eax
mov eax, 1
add esp, 0x14
push ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
call fcn.00459540
add esp, 4
call fcn.0050dcf0
fimul dword [esp + 0x3c]
push edi
push esi
fstp qword [esp + 0x70]
call fcn.00456880
imul ebx, ebx, 0x16
fld qword [esp + 0x70]
fstp qword [esi + 0x80]
fld1
mov edx, dword [esi + 0x34]
mov ecx, dword [esp + 0x6c]
add ebx, ebp
fstp qword [edx + 0x128]
mov eax, dword [edi + 0x28]
cdq
mov dword [ecx + ebx*8 + 0x38], eax
mov dword [ecx + ebx*8 + 0x3c], edx
mov eax, dword [edi + 0x2c]
mov ebx, dword [esp + 0x20]
cdq
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x34]
add esp, 8
inc ebx
mov dword [esi + 0x3c], edx
mov dword [eax + 0x94], ebp
mov dword [esp + 0x18], ebx
jmp 0x40f121
mov eax, ebp
sub eax, edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x20], eax
add eax, ecx
cdq
idiv ebp
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
push edx
mov esi, eax
mov dword [esp + 0x1c], esi
call fcn.00458440
lea eax, [esp + 0x5c]
push esi
push eax
mov ecx, eax
push ecx
call fcn.00459240
fild dword [esp + 0x50]
imul ebx, ebx, 0xb0
fstp qword [esp + 0xc4]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
lea esi, [ebx + edx]
mov dword [esi + 0x18], eax
mov eax, 1
lea edx, [esp + 0x68]
add esp, 0x14
push edx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
call fcn.00459540
add esp, 4
call fcn.0050dcf0
fmul qword [esp + 0xb0]
fstp qword [esp + 0x68]
fild dword [esp + 0x20]
fst qword [esp + 0x20]
fld1
fxch st(1)
call fcn.004bd930
call fcn.004bd196
mov ecx, eax
mov eax, dword [edi + 0x28]
mov ebx, edx
cdq
push edx
push eax
push ebx
push ecx
call fcn.004bdf50
fild dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
fst qword [esp + 0xa0]
fld qword [esp + 0x20]
call fcn.004bd930
call fcn.004bd196
mov ecx, eax
mov eax, dword [edi + 0x2c]
mov ebx, edx
cdq
push edx
push eax
push ebx
push ecx
call fcn.004bdf50
mov ebx, eax
push edi
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
call fcn.00456880
fld qword [esp + 0x70]
fstp qword [esi + 0x80]
add esp, 8
fld1
fdiv qword [esp + 0xb0]
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x20], eax
fst qword [esp + 0xd0]
fild dword [esp + 0x20]
fild qword [esp + 0x28]
fdivp st(1)
fxch st(1)
call fcn.004bd930
mov ebx, dword [esp + 0x18]
mov edx, dword [esi + 0x34]
mov ecx, dword [esp + 0x64]
fstp qword [edx + 0x128]
mov edx, dword [esp + 0x28]
mov eax, ebx
imul eax, eax, 0x16
add eax, ebp
mov dword [ecx + eax*8 + 0x38], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*8 + 0x3c], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x34]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 0x3c], ecx
mov ecx, dword [esp + 0x78]
sub eax, ecx
mov dword [edx + 0x94], ebp
cdq
idiv ebp
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x54]
inc ebx
mov dword [esp + 0x18], ebx
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x1c], esi
call fcn.00458440
lea edx, [esp + 0x5c]
push esi
push edx
mov eax, edx
push eax
call fcn.00459240
fild dword [esp + 0x34]
imul ebx, ebx, 0xb0
fst qword [esp + 0x34]
fld qword [esp + 0xb4]
fxch st(1)
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
lea esi, [ebx + ecx]
mov dword [esi + 0x20], eax
mov eax, 1
add esp, 0x14
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
call fcn.004bd930
lea ecx, [esp + 0x54]
push ecx
fstp qword [esp + 0xa4]
call fcn.00459540
add esp, 4
call fcn.0050dcf0
fmul qword [esp + 0xb0]
fstp qword [esp + 0x68]
fld qword [esp + 0xa0]
call fcn.0050dcf0
fadd qword [esp + 0x68]
mov eax, dword [edi + 0x28]
cdq
fstp qword [esp + 0x68]
mov edi, eax
fld qword [esp + 0xa0]
mov ebx, edx
call fcn.004bd196
push edx
push eax
push ebx
push edi
call fcn.004bdf50
fld1
fld qword [esp + 0x20]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
call fcn.004bd930
call fcn.004bd196
mov edi, dword [esp + 0x400]
mov ecx, eax
mov eax, dword [edi + 0x2c]
mov ebx, edx
cdq
push edx
push eax
push ebx
push ecx
call fcn.004bdf50
mov ebx, eax
push edi
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
call fcn.00456880
fld qword [esp + 0x70]
mov eax, ebx
fstp qword [esi + 0x80]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x28], eax
add esp, 8
fild dword [esp + 0x20]
fild qword [esp + 0x28]
fdivp st(1)
fld qword [esp + 0xd0]
call fcn.004bd930
mov ebx, dword [esp + 0x18]
mov edx, dword [esi + 0x34]
mov ecx, dword [esp + 0x64]
fstp qword [edx + 0x128]
mov edx, dword [esp + 0x28]
mov eax, ebx
imul eax, eax, 0x16
add eax, ebp
mov dword [ecx + eax*8 + 0x38], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*8 + 0x3c], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x34]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x50]
inc ebx
mov dword [esi + 0x3c], ecx
mov dword [edx + 0x94], ebp
mov dword [esp + 0x18], ebx
cmp eax, 1
jle 0x40f121
mov dword [esp + 0x3c], 0
test eax, eax
jle 0x40f121
mov ecx, dword [esp + 0x40]
mov eax, ebx
mov ebx, dword [esp + 0x64]
mov esi, eax
imul eax, eax, 0x16
imul esi, esi, 0xb0
add esi, ebx
add eax, ebp
lea ebx, [ebx + eax*8 + 0x38]
mov eax, dword [esp + 0x3c]
jmp 0x40ec80
test eax, eax
jle 0x40ec91
mov edx, dword [ecx + eax*4]
cmp edx, dword [ecx + eax*4 - 4]
je 0x40f10e
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + edx*4]
mov dword [esp + 0xa0], eax
fild dword [esp + 0xa0]
fst qword [esp + 0xb8]
fild dword [esp + 0x68]
fst qword [esp + 0x20]
call fcn.004bd930
fimul dword [edi + 0x2c]
call fcn.004bd196
fld1
fld qword [esp + 0x20]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
call fcn.004bd930
fimul dword [edi + 0x28]
call fcn.004bd196
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x60], 1
mov dword [esp + 0x20], ecx
cmp eax, dword [esp + 0x3c]
je 0x40ed5f
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x90], ecx
fild dword [esp + 0x90]
fild dword [esp + 0x20]
call fcn.004bd930
fild qword [esp + 0x28]
fmulp st(1)
call fcn.004bd196
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x90]
imul eax, dword [esp + 0x60]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x50]
jl 0x40ed10
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x68]
mov ecx, dword [esp + 0xa0]
cdq
idiv ebp
push ecx
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x1c], eax
call fcn.00458440
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
push ecx
mov edx, ecx
push edx
call fcn.00459240
mov eax, dword [esp + 0xb4]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
cdq
idiv ebp
mov edx, dword [esp + 0x74]
add esp, 0x14
push edx
mov dword [esi + 0x20], ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x48]
push eax
call fcn.00458440
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
mov eax, edx
push eax
call fcn.00459240
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x28]
add esp, 0x14
lea eax, [esp + 0x44]
mov dword [esi + 0x1c], ecx
push eax
lea ecx, [esp + 0x58]
mov dword [esi + 0x24], edx
push ecx
mov edx, ecx
push edx
call fcn.00458530
fild qword [esp + 0x34]
lea eax, [esp + 0x60]
add esp, 0xc
push eax
fstp qword [esp + 0x94]
call fcn.00459540
add esp, 4
call fcn.0050dcf0
fmul qword [esp + 0xb0]
fstp qword [esp + 0x20]
fld qword [esp + 0x90]
call fcn.0050dcf0
fadd qword [esp + 0x20]
push edi
push esi
fstp qword [esp + 0x70]
call fcn.00456880
mov eax, dword [esp + 0x38]
fld qword [esp + 0x70]
cdq
fstp qword [esi + 0x80]
xor eax, edx
sub eax, edx
mov dword [esp + 0x28], eax
add esp, 8
fild dword [esp + 0x20]
fdiv qword [esp + 0x90]
fld qword [esp + 0xd0]
call fcn.004bd930
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x28]
fstp qword [ecx + 0x128]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], eax
mov dword [esi + 0x38], ecx
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x54]
push eax
add ecx, 0x14c
push ecx
mov dword [esi + 0x3c], edx
call fcn.00456880
mov eax, dword [esp + 0x80]
mov edx, dword [esi + 0x34]
inc dword [esp + 0x20]
mov dword [esp + 0x70], eax
fild dword [esp + 0x70]
add esp, 8
mov dword [edx + 0x94], ebp
add esi, 0xb0
fst qword [esp + 0x20]
fld qword [esp + 0xb8]
fxch st(1)
call fcn.004bd930
fimul dword [edi + 0x28]
call fcn.004bd196
fld1
fld qword [esp + 0x20]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
call fcn.004bd930
fimul dword [edi + 0x2c]
call fcn.004bd196
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], edx
mov dword [esp + 0x60], 1
mov dword [esp + 0x20], ecx
cmp eax, dword [esp + 0x3c]
je 0x40ef86
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x90], ecx
fild dword [esp + 0x90]
fild dword [esp + 0x20]
call fcn.004bd930
fild qword [esp + 0x30]
fmulp st(1)
call fcn.004bd196
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x90]
imul eax, dword [esp + 0x60]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], edx
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x50]
jl 0x40ef37
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x68]
cdq
idiv ebp
mov edx, dword [esp + 0xa0]
push edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x58]
push eax
call fcn.00458440
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x60]
push edx
mov eax, edx
push eax
call fcn.00459240
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x88]
mov dword [esi + 0x20], edx
cdq
idiv ebp
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0xb4]
add esp, 0x14
push edx
mov dword [esi + 0x18], ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x48]
push eax
call fcn.00458440
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
mov eax, edx
push eax
call fcn.00459240
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x28]
add esp, 0x14
lea eax, [esp + 0x44]
mov dword [esi + 0x1c], ecx
push eax
lea ecx, [esp + 0x58]
mov dword [esi + 0x24], edx
push ecx
mov edx, ecx
push edx
call fcn.00458530
fild qword [esp + 0x34]
lea eax, [esp + 0x60]
add esp, 0xc
push eax
fstp qword [esp + 0x94]
call fcn.00459540
add esp, 4
call fcn.0050dcf0
fmul qword [esp + 0xb0]
fstp qword [esp + 0xb8]
fld qword [esp + 0x90]
call fcn.0050dcf0
fadd qword [esp + 0xb8]
push edi
push esi
fstp qword [esp + 0x70]
call fcn.00456880
mov eax, dword [esp + 0x38]
fld qword [esp + 0x70]
cdq
fstp qword [esi + 0x80]
xor eax, edx
sub eax, edx
mov dword [esp + 0x28], eax
add esp, 8
fild dword [esp + 0x20]
fdiv qword [esp + 0x90]
fld qword [esp + 0xd0]
call fcn.004bd930
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x28]
fstp qword [ecx + 0x128]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0xb0], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 0xb4], eax
mov dword [esi + 0x38], ecx
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x54]
push eax
add ecx, 0x14c
push ecx
mov dword [esi + 0x3c], edx
call fcn.00456880
mov edx, dword [esi + 0x34]
inc dword [esp + 0x20]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add esp, 8
add ebx, 0x160
mov dword [edx + 0x94], ebp
add esi, 0xb0
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x50]
jl 0x40ec80
mov ebx, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x3c], ebp
cmp ebp, 7
jl 0x40e882
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x40f14a
mov esi, dword [esp + 0xac]
mov dword [esp + 0x88], ebx
jmp 0x40f15a
mov esi, ebx
sub esi, dword [esp + 0x88]
mov dword [esp + 0xac], esi
inc eax
mov dword [esp + 0x98], eax
cmp eax, 2
jl 0x40e810
imul esi, dword [esp + 0x88]
mov eax, esi
imul eax, eax, 0xb0
push eax
call fcn.004b7263
add esp, 4
mov dword [esp + 0x1c], eax
test esi, esi
jle 0x40f1a0
mov edi, eax
mov edi, edi
mov eax, edi
call fcn.0040a620
add edi, 0xb0
dec esi
jne 0x40f190
cmp dword [0x5d5f9c], 0
jle 0x40f1b6
push str._ngen:__ngen:_considering_the_following_polynomials:_ngen:__n_n
call fcn.004b7f6d
add esp, 4
cmp dword [esp + 0x88], 0
fldz
fstp qword [esp + 0x78]
mov dword [esp + 0x18], 0
jle 0x40f8e8
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x8c], edx
jmp 0x40f1f0
cmp dword [esp + 0xac], 0
mov esi, dword [esp + 0x50]
jle 0x40f8d1
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x88]
mov eax, ecx
imul ecx, ecx, 0xb0
imul edi, edi, 0xb0
imul eax, eax, 0x16
add edi, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
lea ebx, [ecx + eax + 0x34]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ecx
mov edx, dword [esi + 0x34]
mov eax, dword [edx + 0x94]
mov ecx, dword [edi + 0x34]
cmp eax, dword [ecx + 0x94]
jne 0x40f8b7
mov edx, dword [edi + 0x3c]
mov ebp, eax
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebp*8 + 0x3c]
push edx
mov edx, dword [esi + ebp*8 + 0x38]
push eax
push ecx
push edx
mov dword [esp + 0x4c], ebp
call fcn.004bdf50
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x3c]
push eax
mov eax, dword [edi + ebp*8 + 0x38]
mov dword [esp + 0x38], edx
mov edx, dword [edi + ebp*8 + 0x3c]
push ecx
push edx
push eax
call fcn.004bdf50
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
cmp edx, dword [esp + 0x34]
jl 0x40f53b
jg 0x40f2b7
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jbe 0x40f53b
mov edx, dword [esp + 0x400]
lea eax, [ebx - 0x34]
push edx
push eax
call fcn.00456880
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
add esp, 8
test ecx, ecx
je 0x40f2e3
xor edx, edx
div ecx
mov eax, ecx
mov ecx, edx
test edx, edx
jne 0x40f2d7
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
add ecx, ebp
lea ecx, [edx + ecx*8 + 0x38]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
mov dword [esp + 0x50], ecx
call fcn.004c5de0
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40f32c
lea esp, [esp]
xor edx, edx
div ecx
mov eax, ecx
mov ecx, edx
test edx, edx
jne 0x40f320
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
push eax
push ecx
push edx
call fcn.004c5de0
fild dword [esp + 0x3c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
cdq
fst qword [esp + 0xb0]
xor eax, edx
sub eax, edx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
fild dword [esp + 0x84]
fild qword [eax]
fdivp st(1)
fld1
fdivrp st(2)
fxch st(1)
call fcn.004bd930
mov ecx, dword [ebx]
fstp qword [ecx + 0x128]
mov edx, dword [ebx]
fld qword [0x5b49b0]
mov dword [edx + 0x94], ebp
fld qword [edi + 0x80]
call fcn.004bd930
fstp qword [esp + 0xb8]
fld qword [0x5b49b0]
fld qword [esi + 0x80]
call fcn.004bd930
fadd qword [esp + 0xb8]
call fcn.004bdd80
fstp qword [ebx + 0x4c]
mov eax, dword [edi + 0x18]
mov ecx, dword [ebx]
push eax
add ecx, 0x10
push ecx
call fcn.00458440
mov eax, dword [ebx]
mov edx, dword [edi + 0x20]
add eax, 0x10
push edx
push eax
push eax
call fcn.00459240
mov eax, dword [edi + 0x1c]
add esp, 0x14
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00458440
mov edx, dword [edi + 0x24]
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, eax
push ecx
call fcn.00459240
mov eax, dword [ebx]
add esp, 0x14
lea edx, [esp + 0x44]
add eax, 0x10
push edx
push eax
push eax
call fcn.00458530
mov eax, dword [esi + 0x18]
mov ecx, dword [ebx]
add esp, 0xc
push eax
add ecx, 4
push ecx
call fcn.00458440
mov eax, dword [ebx]
mov edx, dword [esi + 0x20]
add eax, 4
push edx
push eax
push eax
call fcn.00459240
mov eax, dword [esi + 0x1c]
add esp, 0x14
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00458440
mov edx, dword [esi + 0x24]
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, eax
push ecx
call fcn.00459240
mov eax, dword [ebx]
add esp, 0x14
lea edx, [esp + 0x44]
add eax, 4
push edx
push eax
push eax
call fcn.00458530
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [eax + 0x10]
push ecx
add eax, 4
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00458a00
lea eax, [esp + 0x50]
add esp, 0xc
push eax
call fcn.00459540
add esp, 4
call fcn.0050dcf0
fmul qword [esp + 0xb0]
mov eax, dword [ebx]
lea ecx, [esp + 0x44]
fsubr qword [ebx + 0x4c]
add eax, 4
push ecx
push eax
push eax
fstp qword [ebx + 0x4c]
call fcn.00457360
mov eax, dword [ebx]
add esp, 0xc
lea edx, [esp + 0x44]
add eax, 0x10
push edx
push eax
push eax
call fcn.00457360
mov eax, dword [ebx]
lea ecx, [eax + 4]
add esp, 0xc
push ecx
add eax, 0x14c
push eax
call fcn.00456880
mov edx, dword [ebx]
lea esi, [ebx - 0x34]
push esi
add edx, 0x10
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004598d0
mov eax, dword [ebx]
add esp, 0x14
lea ecx, [esp + 0x44]
add eax, 0x14c
push ecx
push eax
push eax
call fcn.00458530
mov eax, dword [ebx]
add esp, 0xc
add eax, 0x14c
push esi
push eax
push eax
call fcn.00458470
mov esi, dword [ebx]
add esi, 0x10
add esp, 0xc
cmp esi, esi
je 0x40f52e
push esi
push esi
call fcn.00456880
add esp, 8
mov edx, dword [esi + 4]
neg edx
mov dword [esi + 4], edx
jmp 0x40f7bb
mov ecx, dword [esp + 0x400]
lea eax, [ebx - 0x34]
push ecx
push eax
call fcn.00456880
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
add esp, 8
test ecx, ecx
je 0x40f56c
jmp 0x40f560
xor edx, edx
div ecx
mov eax, ecx
mov ecx, edx
test edx, edx
jne 0x40f560
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push eax
mov eax, dword [esp + 0x34]
add edx, ebp
lea edx, [ecx + edx*8 + 0x38]
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x50], edx
call fcn.004c5de0
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40f5b1
xor edx, edx
div ecx
mov eax, ecx
mov ecx, edx
test edx, edx
jne 0x40f5a5
mov edx, dword [esp + 0x34]
push 0
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.004c5de0
fild dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
fst qword [esp + 0xb0]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x84], eax
fild dword [esp + 0x84]
fild qword [ecx]
fdivp st(1)
fld1
fdivrp st(2)
fxch st(1)
call fcn.004bd930
mov edx, dword [ebx]
fstp qword [edx + 0x128]
mov eax, dword [ebx]
fld qword [0x5b49b0]
mov dword [eax + 0x94], ebp
fld qword [edi + 0x80]
call fcn.004bd930
fstp qword [esp + 0xb8]
fld qword [0x5b49b0]
fld qword [esi + 0x80]
call fcn.004bd930
fadd qword [esp + 0xb8]
call fcn.004bdd80
fstp qword [ebx + 0x4c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ebx]
push ecx
add edx, 0x10
push edx
call fcn.00458440
mov eax, dword [ebx]
mov ecx, dword [esi + 0x20]
add eax, 0x10
push ecx
push eax
push eax
call fcn.00459240
mov edx, dword [esi + 0x1c]
add esp, 0x14
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00458440
mov ecx, dword [esi + 0x24]
push ecx
lea edx, [esp + 0x50]
push edx
mov eax, edx
push eax
call fcn.00459240
mov eax, dword [ebx]
add esp, 0x14
lea ecx, [esp + 0x44]
add eax, 0x10
push ecx
push eax
push eax
call fcn.00458530
mov edx, dword [edi + 0x18]
mov eax, dword [ebx]
add esp, 0xc
push edx
add eax, 4
push eax
call fcn.00458440
mov eax, dword [ebx]
mov ecx, dword [edi + 0x20]
add eax, 4
push ecx
push eax
push eax
call fcn.00459240
mov edx, dword [edi + 0x1c]
add esp, 0x14
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00458440
mov ecx, dword [edi + 0x24]
push ecx
lea edx, [esp + 0x50]
push edx
mov eax, edx
push eax
call fcn.00459240
mov eax, dword [ebx]
add esp, 0x14
lea ecx, [esp + 0x44]
add eax, 4
push ecx
push eax
push eax
call fcn.00458530
mov eax, dword [ebx]
lea edx, [eax + 0x10]
add esp, 0xc
push edx
add eax, 4
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00458a00
lea ecx, [esp + 0x50]
add esp, 0xc
push ecx
call fcn.00459540
add esp, 4
call fcn.0050dcf0
fmul qword [esp + 0xb0]
mov eax, dword [ebx]
lea edx, [esp + 0x44]
fsubr qword [ebx + 0x4c]
add eax, 4
push edx
push eax
push eax
fstp qword [ebx + 0x4c]
call fcn.00457360
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [esp + 0x44]
add eax, 0x10
push ecx
push eax
push eax
call fcn.00457360
mov eax, dword [ebx]
lea edx, [eax + 4]
add esp, 0xc
push edx
add eax, 0x14c
push eax
call fcn.00456880
mov eax, dword [ebx]
lea esi, [ebx - 0x34]
push esi
add eax, 0x10
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.004598d0
mov eax, dword [ebx]
add esp, 0x14
lea edx, [esp + 0x44]
add eax, 0x14c
push edx
push eax
push eax
call fcn.00458530
mov eax, dword [ebx]
add esp, 0xc
add eax, 0x14c
push esi
push eax
push eax
call fcn.00458470
mov esi, dword [ebx]
add esi, 0x10
add esp, 0xc
cmp esi, esi
je 0x40f7b3
push esi
push esi
call fcn.00456880
add esp, 8
mov eax, dword [esi + 4]
neg eax
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x40]
fild qword [ecx]
call fcn.0050dcf0
fadd qword [ebx + 0x4c]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xa8]
lea esi, [ebx - 0x34]
fstp qword [ebx + 0x4c]
mov dword [ebx - 0x1c], eax
mov dword [ebx - 0x14], ecx
mov dword [ebx - 0x18], ecx
mov dword [ebx - 0x10], eax
mov dword [ebx - 4], 3
call fcn.0040a890
lea esi, [ebx - 0x34]
call fcn.0040adc0
fld qword [0x5b45d0]
fcomp qword [ebx + 0x4c]
fnstsw ax
test ah, 0x41
jne 0x40f812
cmp ebp, 6
jmp 0x40f835
fld qword [0x5b49a8]
fcomp qword [ebx + 0x4c]
fnstsw ax
test ah, 0x41
jne 0x40f827
cmp ebp, 6
jmp 0x40f835
fld qword [0x5b47a8]
cmp ebp, 4
fcomp qword [ebx + 0x4c]
fnstsw ax
jne 0x40f840
mov dword [ebx + 0x70], 0
jmp 0x40f84b
fld qword [ebx + 0x4c]
fadd qword [esp + 0x78]
fstp qword [esp + 0x78]
cmp dword [ebx + 0x70], 0
je 0x40f882
cmp dword [0x5d5f9c], 0
jle 0x40f871
call fcn.004b7416
lea edi, [eax + 0x20]
lea esi, [ebx - 0x34]
call fcn.0040ac00
mov edi, dword [esp + 0x98]
inc dword [esp + 0x18]
add dword [esp + 0x20], 0x16
add ebx, 0xb0
jmp 0x40f8b3
lea esi, [ebx - 0x34]
push esi
call fcn.00456900
lea edx, [ebx - 0x28]
add esp, 4
push edx
call fcn.00456900
mov eax, dword [ebx]
add esp, 4
call fcn.0040a580
mov eax, dword [ebx]
push eax
call fcn.004b7229
add esp, 4
mov eax, esi
call fcn.0040a620
mov esi, dword [esp + 0x50]
add edi, 0xb0
dec dword [esp + 0x9c]
mov dword [esp + 0x98], edi
jne 0x40f243
add esi, 0xb0
dec dword [esp + 0x8c]
mov dword [esp + 0x50], esi
jne 0x40f1f0
fild dword [esp + 0x18]
fdivr qword [esp + 0x78]
fld qword [0x5b45d0]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40f933
cmp ebp, 6
jne 0x40f91d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
imul eax, eax, 0xb0
mov dword [eax + edx + 0xa4], 0
mov eax, dword [esp + 0x3fc]
mov dword [eax + 0xef4], 4
jmp 0x40f9f9
fld qword [0x5b49a8]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40f980
cmp ebp, 6
jne 0x40f960
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
imul eax, eax, 0xb0
mov dword [eax + ecx + 0xa4], 0
mov eax, dword [esp + 0x3fc]
mov dword [eax + 0xef4], 5
mov dword [eax + 0xef8], 4
jmp 0x40fa03
fld qword [0x5b47a8]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40f9ca
cmp ebp, 4
jne 0x40f9ad
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
imul edx, edx, 0xb0
mov dword [eax + edx + 0xa4], 0
mov eax, dword [esp + 0x3fc]
mov dword [eax + 0xef4], 5
mov dword [eax + 0xef8], 6
jmp 0x40fa03
cmp ebp, 4
jne 0x40f9e8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
imul eax, eax, 0xb0
mov dword [eax + edx + 0xa4], 0
mov eax, dword [esp + 0x3fc]
mov dword [eax + 0xef4], 6
mov dword [eax + 0xef8], 5
mov ecx, dword [eax + 0xef8]
mov edx, dword [eax + 0xef4]
push ecx
push edx
sub esp, 8
fstp qword [esp]
push str.average_difficulty___1.2f__preferred_degree___d__alternate_degree___d_n
call fcn.004b7f6d
mov eax, dword [esp + 0x418]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
pop ebx
add esp, 0x3e8
ret