Function at 0x420460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push ecx
push 1
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0057b163
add esp, 0x10
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 1], al
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
cdq
idiv dword [ecx + 0x20]
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x24], eax
movzx eax, byte [ebp - 1]
test eax, eax
je 0x42069a
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 8]
cdq
mov ecx, dword [ebp - 0x30]
add eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
adc ecx, edx
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x24]
push ecx
push 0x18
mov edx, dword [ebp - 0x30]
add edx, 0x2c
push ecx
mov ecx, esp
push edx
call fcn.0041d8c0
push ecx
mov ecx, esp
push 0x5fdd4c
call fcn.004016d0
mov eax, dword [ebp - 0x30]
add eax, 0x28
push eax
call fcn.0041dac0
add esp, 0x18
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x30]
xor edx, edx
cmp dword [ecx + 0x20], 1
sete dl
mov byte [ebp - 2], dl
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x4205c8
movzx edx, byte [ebp - 2]
test edx, edx
je 0x42055b
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
neg ecx
sbb ecx, ecx
add ecx, 1
mov dword [ebp - 0x34], ecx
jmp 0x42056b
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4205b7
cmp dword [ebp - 8], 0
je 0x4205a2
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 8]
je 0x4205a2
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
imul edx, dword [ecx + 0x20]
mov eax, dword [ebp - 8]
sub eax, edx
push eax
call fcn.0057c0d0
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x20]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
jmp 0x42052d
cmp dword [ebp - 8], 0
je 0x4205f9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x4205f9
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
imul ecx, dword [eax + 0x20]
mov edx, dword [ebp - 8]
sub edx, ecx
push edx
call fcn.0057c0d0
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x42063c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
push 1
push ecx
mov ecx, esp
push 0
call fcn.004016d0
push ecx
mov ecx, esp
push 0x5fdd58
call fcn.004016d0
mov ecx, dword [ebp - 0x30]
add ecx, 0x28
push ecx
call fcn.0041dac0
add esp, 0x18
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x24]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x20], 1
jle 0x42069a
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call fcn.0041eac0
add esp, 4
movzx edx, al
test edx, edx
je 0x42069a
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041eb00
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
push 0
call fcn.004016d0
push ecx
mov ecx, esp
push 0x5fdd74
call fcn.004016d0
mov eax, dword [ebp - 0x30]
add eax, 0x28
push eax
call fcn.0041dac0
add esp, 0x18
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x4206aa
mov ecx, dword [ebp - 0x30]
call fcn.00420280
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 4