Function at 0x40ad30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a970
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x462e60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov ebx, ecx
mov eax, dword [ebx + 0x14]
xor edi, edi
cmp eax, edi
je 0x40ad7b
push eax
call fcn.004315c1
add esp, 4
mov dword [ebx + 0x14], edi
push esi
mov ecx, ebx
call fcn.004090d0
mov eax, dword [ebx + 0x14]
cmp eax, edi
je 0x40b065
push edi
push edi
push eax
mov dword [ebp - 4], edi
call fcn.004329db
mov eax, dword [ebx + 0x14]
push eax
push 1
lea ecx, [ebx + 0x68]
push 4
push ecx
call fcn.00432630
mov edx, dword [ebx + 0x14]
push edx
push 1
lea esi, [ebx + 8]
push 4
push esi
call fcn.00432630
mov ecx, dword [esi]
mov eax, 0xd41d41d5
mul ecx
mov eax, dword [ebx + 0x14]
sub ecx, edx
shr ecx, 1
add ecx, edx
push eax
shr ecx, 8
push 1
mov dword [ebx], ecx
lea ecx, [ebp - 0x264]
push 4
push ecx
call fcn.00432630
mov edx, dword [ebp - 0x264]
add esp, 0x3c
cmp edx, dword [ebx]
ja 0x40b065
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax + 4]
lea esi, [ebx + 0x50]
push ecx
mov ecx, esi
call fcn.00409f20
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov dword [ebp - 0x268], edi
nop
mov edx, dword [ebp - 0x268]
cmp edx, dword [ebp - 0x264]
jae 0x40af7c
mov eax, dword [ebx + 0x14]
push eax
push 1
lea ecx, [ebp - 0x148]
push 0x118
push ecx
call fcn.00432630
add esp, 0x10
xor eax, eax
mov edi, edi
cmp eax, 0x118
jae 0x40ae6c
mov dl, byte [ebp + eax - 0x148]
not dl
mov byte [ebp + eax - 0x148], dl
add eax, 1
jmp 0x40ae50
lea eax, [ebp - 0x148]
push eax
call fcn.004330e2
lea eax, [ebp - 0x148]
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ae92
sub eax, edx
push eax
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00402080
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebx + 0x50]
mov byte [ebp - 4], 1
call fcn.0040aad0
mov ecx, 0x46
lea esi, [ebp - 0x148]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
mov byte [ebp - 4], 0
jb 0x40aee6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00415b52
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x40af6e
cmp dword [ebx + 0x6c], 0
je 0x40af6e
lea eax, [ebp - 0x148]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40af15
sub eax, edx
push eax
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00402080
mov eax, dword [ebp - 0x34]
mov edx, dword [ebx + 0x6c]
mov ecx, dword [edx + 0x10]
mov edx, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push 1
push edx
mov edx, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x38]
push edx
push eax
lea edx, [ebp - 0x30]
push edx
mov byte [ebp - 4], 2
call fcn.00406810
cmp dword [ebp - 0x18], esi
mov byte [ebp - 4], 0
jb 0x40af6e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00415b52
add esp, 4
add dword [ebp - 0x268], 1
xor edi, edi
jmp 0x40ae20
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x14]
push edi
add ecx, 0xc
push ecx
push edx
call fcn.004329db
mov eax, dword [ebx + 0x14]
push eax
push 1
lea esi, [ebx + 0xc]
push 4
push esi
call fcn.00432630
mov ecx, dword [esi]
mov eax, 0xd41d41d5
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 8
mov dword [ebx + 4], ecx
mov ecx, dword [ebx + 0x14]
push ecx
push 1
lea edx, [ebp - 0x264]
push 4
push edx
call fcn.00432630
mov eax, dword [ebp - 0x264]
add esp, 0x2c
cmp eax, dword [ebx + 4]
ja 0x40b065
mov ecx, dword [ebx + 0x60]
mov edx, dword [ecx + 4]
lea esi, [ebx + 0x5c]
push edx
mov ecx, esi
call fcn.00408470
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
xor esi, esi
cmp esi, dword [ebp - 0x264]
jae 0x40b05b
mov eax, dword [ebx + 0x14]
push eax
push 1
lea ecx, [ebp - 0x260]
push 0x118
push ecx
call fcn.00432630
add esp, 0x10
xor eax, eax
cmp eax, 0x118
jae 0x40b040
mov dl, byte [ebp + eax - 0x260]
not dl
mov byte [ebp + eax - 0x260], dl
add eax, 1
jmp 0x40b024
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebx + 0x5c]
call fcn.00409f80
add esi, 1
jmp 0x40b000
mov al, 1
jmp 0x40b067
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431e6f
mov esp, ebp
pop ebp
ret 8