Function at 0x414601
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
lea esi, [ebp + 8]
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [esp + 0x70], eax
push 0x639805
push esi
call fcn.00483270
add esp, 8
test eax, eax
je 0x414730
mov edi, eax
lea esi, [esp + 0x50]
push eax
push 0x10
push 1
push esi
call fcn.0061e677
add esp, 0x10
cmp eax, 0xf
jbe 0x414720
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.0041380c
add esp, 8
test al, al
je 0x414720
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov esi, dword [esp + 0x58]
test esi, esi
je 0x414688
lea ebx, [esp + 0x40]
mov ecx, ebx
push esi
call fcn.004172b4
mov eax, dword [ebx]
push edi
push esi
push 1
push eax
call fcn.0061e677
add esp, 0x10
xor ebx, ebx
cmp eax, esi
lea esi, [ebp + 8]
jb 0x41495e
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x5c]
test eax, eax
mov dword [esp + 8], eax
je 0x4146cc
lea ebx, [esp + 0x34]
mov ecx, ebx
push eax
call fcn.004172b4
mov eax, dword [esp + 8]
mov ebx, dword [ebx]
push edi
push eax
push 1
push ebx
call fcn.0061e677
add esp, 0x10
mov ebx, eax
mov eax, dword [esp + 8]
cmp ebx, eax
jb 0x414944
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
sub ebx, ecx
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
cmp ebx, 0xfffffff0
jae 0x41497c
cmp ebx, 0xb
jae 0x41474e
lea esi, [esp + 0x28]
mov byte [esi + 0xb], bl
mov eax, esi
test ebx, ebx
jne 0x414779
jmp 0x41478c
xor ebx, ebx
lea esi, [ebp + 8]
push edi
call fcn.0061e030
add esp, 4
jmp 0x414732
xor ebx, ebx
mov ecx, esi
call fcn.0046ee40
mov ecx, dword [esp + 0x70]
xor ecx, ebp
call fcn.00517c1a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebx + 0x10]
and esi, 0xfffffff0
push esi
mov dword [esp + 8], ecx
call fcn.00517b56
mov ecx, dword [esp + 8]
add esp, 4
lea edx, [esp + 0x28]
mov dword [edx], eax
or esi, 0x80000000
mov dword [edx + 8], esi
mov esi, edx
mov dword [edx + 4], ebx
mov dword [esp + 4], eax
push ebx
push ecx
push eax
call fcn.006025b0
mov eax, dword [esp + 0x10]
add esp, 0xc
mov byte [eax + ebx], 0
movzx eax, byte [esi + 0xb]
test al, al
mov dword [esp + 4], esi
jns 0x4147a6
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
jmp 0x4147aa
lea ecx, [esp + 0x28]
mov edx, 0x10
lea ebx, [esp + 0x60]
push edx
push ebx
push eax
push ecx
call fcn.00497e10
add esp, 0x10
lea esi, [esp + 0x10]
mov eax, 0x10
push eax
push ebx
push esi
call fcn.00477eb0
add esp, 0xc
lea ebx, [esp + 0x1c]
mov ecx, ebx
push esi
call fcn.00467d9e
movzx ecx, byte [ebx + 0xb]
mov eax, ecx
test cl, cl
jns 0x4147ed
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41482d
mov eax, ebx
test cl, cl
jns 0x4147fb
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax]
mov edx, ecx
add dl, 0xbf
mov dh, cl
add dh, 0x20
cmp dl, 0x1a
movzx edx, dh
cmovae edx, ecx
mov byte [eax], dl
inc eax
movzx ecx, byte [esp + 0x27]
mov edx, ebx
test cl, cl
jns 0x414827
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add edx, ecx
cmp eax, edx
jne 0x4147fb
cmp byte [esp + 0x1b], 0
jns 0x414840
push dword [esp + 0x10]
call fcn.00517bd6
add esp, 4
xor ebx, ebx
lea esi, [esp + 0x1c]
movzx eax, byte [esp + 0x27]
test al, al
js 0x414857
cmp ebx, eax
jae 0x4148a4
mov eax, esi
jmp 0x414863
mov ecx, dword [esp + 0x20]
cmp ebx, ecx
jae 0x4148a6
mov eax, dword [esp + 0x1c]
add eax, ebx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
call fcn.00477f80
add esp, 0xc
test al, al
je 0x41488f
mov cl, byte [esp + 0x10]
cmp byte [esp + 0x27], 0
mov eax, esi
jns 0x41488a
mov eax, dword [esp + 0x1c]
add cl, 0x61
jmp 0x41489e
cmp byte [esp + 0x27], 0
mov eax, esi
jns 0x41489c
mov eax, dword [esp + 0x1c]
mov cl, 0x61
mov byte [eax + ebx], cl
inc ebx
jmp 0x414846
mov ecx, eax
test al, al
jns 0x4148b0
mov eax, dword [esp + 0x1c]
jmp 0x4148b4
lea eax, [esp + 0x1c]
lea esi, [ebp + 8]
mov ebx, dword [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0047d060
add esp, 0xc
mov esi, dword [esi + 0xc]
cmp byte [esi + 0xb], 0
js 0x4148de
mov word [esi], 0
mov byte [esi + 0xb], 0
jmp 0x414903
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
cmp byte [esi + 0xb], 0
jns 0x414903
push dword [esi]
call fcn.00517bd6
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [esi], xmm0
cmp byte [esp + 0x27], 0
jns 0x414927
push dword [esp + 0x1c]
call fcn.00517bd6
add esp, 4
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0
lea esi, [ebp + 8]
jns 0x414940
push dword [esp + 0x28]
call fcn.00517bd6
add esp, 4
mov eax, dword [esp + 8]
cmp ebx, eax
setae bl
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41495e
mov dword [esp + 0x38], eax
push eax
call fcn.00517bd6
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x414725
mov dword [esp + 0x44], eax
push eax
call fcn.00517bd6
add esp, 4
jmp 0x414725
lea ecx, [esp + 0x28]
call fcn.00467d64