Function at 0x4df9f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
push str.reading_all_ideals_from_disk_n
push ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], ecx
call fcn.00410350
mov edx, dword [ebx + 0x14]
push edx
lea eax, [ebp - 0x10c]
push 0x5c05c8
push eax
call fcn.004b70c5
add esp, 0x14
lea ecx, [ebp - 0x10c]
push 0x5c05d0
push ecx
call fcn.004b80e6
mov esi, eax
add esp, 8
test esi, esi
jne 0x4dfa7b
push 0x5c05d4
push ebx
call fcn.00410350
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov eax, dword [edi + 0x20]
push eax
call fcn.004b7263
add esp, 4
test eax, eax
jne 0x4dfaa3
mov edx, dword [edi + 0x20]
push edx
push 0x5c054c
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov ecx, dword [edi + 0x20]
push esi
push ecx
push 1
push eax
mov dword [edi], eax
call fcn.004b98dd
push esi
call fcn.004b8276
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
mov ecx, eax
mov dword [ebp - 0x124], edx
and eax, 0x7fffffff
mov dword [ebp - 0x120], eax
fild qword [ebp - 0x124]
and ecx, 0x80000000
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], 0
fild qword [ebp - 0x124]
add esp, 0xc
fchs
faddp st(1)
fmul qword [0x5b4730]
fstp qword [esp]
push 0x5c05f0
push ebx
call fcn.00410350
mov eax, dword [ebp - 0x114]
push 4
push eax
call fcn.004b9228
mov ebx, eax
add esp, 0x18
mov dword [ebp - 0x120], ebx
test ebx, ebx
jne 0x4dfb4d
mov ecx, dword [ebp - 0x114]
lea edx, [ecx*4]
push edx
push 0x5c056c
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov eax, dword [ebp - 0x118]
mov esi, dword [edi]
test eax, eax
je 0x4dfb94
mov dword [ebp - 0x110], eax
xor ecx, ecx
cmp byte [esi + 4], cl
jbe 0x4dfb84
lea edx, [esi + 8]
lea esp, [esp]
mov eax, dword [edx]
inc dword [ebx + eax*4]
lea eax, [ebx + eax*4]
movzx eax, byte [esi + 4]
inc ecx
add edx, 4
cmp ecx, eax
jb 0x4dfb70
dec dword [ebp - 0x110]
movzx ecx, byte [esi + 4]
lea esi, [esi + ecx*4 + 8]
jne 0x4dfb5f
mov esi, dword [ebp - 0x114]
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x4dfbc3
mov edx, dword [ebx + eax*4]
test edx, edx
je 0x4dfbb7
cmp edx, 0xc8
ja 0x4dfbb7
mov dword [ebx + eax*4], ecx
inc ecx
jmp 0x4dfbbe
mov dword [ebx + eax*4], 0xffffffff
inc eax
cmp eax, esi
jb 0x4dfba2
mov edx, eax
sub edx, ecx
add dword [edi + 0x14], edx
mov edx, dword [edi + 0x14]
mov dword [edi + 8], ecx
cmp eax, ecx
je 0x4dfcc9
mov eax, dword [ebp - 0x128]
push edx
push 0xc8
push ecx
push 0x5c0608
push eax
call fcn.00410350
mov ecx, dword [ebp - 0x118]
mov eax, dword [edi]
add esp, 0x14
mov esi, eax
test ecx, ecx
je 0x4dfc98
mov dword [ebp - 0x110], ecx
mov edx, dword [esi]
movzx ecx, byte [esi + 4]
mov dword [eax], edx
mov dl, byte [esi + 5]
mov byte [eax + 5], dl
xor edx, edx
mov dword [ebp - 0x128], ecx
test ecx, ecx
je 0x4dfc71
lea ebx, [esi + 8]
mov dword [ebp - 0x114], ebx
mov ebx, dword [ebp - 0x120]
lea edi, [eax + 8]
mov dword [ebp - 0x118], ecx
lea ecx, [ecx]
mov ecx, dword [ebp - 0x114]
mov ecx, dword [ecx]
mov ecx, dword [ebx + ecx*4]
cmp ecx, 0xffffffff
je 0x4dfc56
mov dword [edi], ecx
inc edx
add edi, 4
add dword [ebp - 0x114], 4
dec dword [ebp - 0x118]
jne 0x4dfc40
mov ecx, dword [ebp - 0x128]
mov edi, dword [ebp - 0x12c]
mov bl, cl
sub bl, dl
add byte [eax + 5], bl
dec dword [ebp - 0x110]
mov byte [eax + 4], dl
movzx edx, dl
lea eax, [eax + edx*4 + 8]
lea esi, [esi + ecx*4 + 8]
jne 0x4dfc0b
mov ebx, dword [ebp - 0x120]
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
add eax, eax
lea esi, [eax + eax]
push esi
push ecx
call fcn.004b95e6
add esp, 8
test eax, eax
jne 0x4dfcc7
push esi
push 0x5c0588
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov dword [edi], eax
push ebx
call fcn.004b7229
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc40c
mov esp, ebp
pop ebp
ret