Function at 0x415970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e660
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x61b660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x94], 0
push 0x63
push 0
lea eax, [ebp - 0x93]
push eax
call fcn.00529d40
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052a1d9
add esp, 0x10
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x95], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
cdq
idiv dword [ecx + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x14], eax
movzx eax, byte [ebp - 0x95]
test eax, eax
je 0x415c6f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push edx
push str.length__d
lea eax, [ebp - 0x94]
push eax
call fcn.00529deb
add esp, 0xc
lea ecx, [ebp - 0x94]
push ecx
call fcn.005291f0
add esp, 4
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
push edx
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.004064c0
mov dword [ebp - 0xa8], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
cmp dword [ecx + 0x10], 1
sete dl
mov byte [ebp - 0x96], dl
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa0]
sub ecx, 1
mov dword [ebp - 0xa0], ecx
test eax, eax
je 0x415b66
movzx edx, byte [ebp - 0x96]
test edx, edx
je 0x415ac6
mov eax, dword [ebp - 0xa4]
movsx ecx, byte [eax]
neg ecx
sbb ecx, ecx
add ecx, 1
mov dword [ebp - 0xf4], ecx
jmp 0x415adc
mov edx, dword [ebp - 0xa4]
movzx eax, word [edx]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0
je 0x415b4f
cmp dword [ebp - 0x9c], 0
je 0x415b2e
mov ecx, dword [ebp - 0xa4]
cmp ecx, dword [ebp - 0x9c]
je 0x415b2e
mov edx, dword [ebp - 0xa4]
sub edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xa8]
imul edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x9c]
sub eax, edx
push eax
call fcn.0052bb40
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xa4]
add edx, dword [ecx + 0x10]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0xa8]
add eax, 1
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xa4]
add edx, dword [ecx + 0x10]
mov dword [ebp - 0xa4], edx
jmp 0x415a86
cmp dword [ebp - 0x9c], 0
je 0x415baf
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0x9c]
je 0x415baf
mov ecx, dword [ebp - 0xa4]
sub ecx, dword [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xa8]
imul ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x9c]
sub edx, ecx
push edx
call fcn.0052bb40
add esp, 0xc
cmp dword [ebp - 0xa8], 0
je 0x415c13
mov eax, dword [ebp - 0xa8]
push eax
push str.__d_nulls_removed_
lea ecx, [ebp - 0x94]
push ecx
call fcn.00529deb
add esp, 0xc
lea edx, [ebp - 0x94]
push edx
call fcn.005291f0
add esp, 4
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.00406360
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
sub eax, dword [ebp - 0xa8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x10], 1
jle 0x415c6f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00415260
add esp, 4
movzx edx, al
test edx, edx
je 0x415c6f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004152a0
add esp, 8
push str.endian_swap
call fcn.005291f0
add esp, 4
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
push eax
push str.endian_swap
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.00406360
movzx ecx, byte [ebp - 0x95]
test ecx, ecx
jne 0x415ccb
lea edx, [ebp - 0x2c]
push edx
call fcn.004110a0
add esp, 4
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xe0]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.00405ab0
mov dword [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406060
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x95]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052927b
mov esp, ebp
pop ebp
ret