Function at 0x4570a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fae18
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x542488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push 0
push eax
push ebx
call fcn.004c7cd3
xor eax, eax
mov dword [ebp - 0x14], 0
add esp, 0xc
cmp ax, word [ebp + 0x14]
jae 0x457546
xor eax, eax
mov dword [ebp - 0x7c], 0x2014b50
push ebx
mov esi, 1
mov dword [ebp - 0x60], eax
push 0x2e
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x52], eax
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp - 0x78], reloc.KERNEL32.dll_InitializeSListHead
mov dword [ebp - 0x74], 0x80000
mov dword [ebp - 0x70], 0x40e24e87
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov word [ebp - 0x58], si
mov dword [ebp - 0x56], 0x20
call fcn.004c7886
add esp, 0x10
cmp eax, 0x2e
jne 0x457546
mov ax, word [ebp - 0x60]
test ax, ax
je 0x457546
movzx esi, ax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x40], ebx
xor edi, edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp + 0x10], eax
test esi, esi
je 0x4571d4
cmp esi, 0x1000
jb 0x4571aa
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x45755a
push eax
call fcn.004b5e3a
add esp, 4
test eax, eax
je 0x45755f
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4571b5
push esi
call fcn.004b5e3a
add esp, 4
mov ebx, eax
push esi
lea edi, [ebx + esi]
mov dword [ebp - 0x40], ebx
mov eax, edi
push 0
push ebx
mov dword [ebp - 0x38], eax
call fcn.004b8860
add esp, 0xc
mov dword [ebp - 0x3c], edi
mov eax, ebx
mov dword [ebp + 0x10], ebx
push dword [ebp + 8]
mov esi, edi
mov dword [ebp - 4], 0
sub esi, eax
push esi
push 1
push eax
call fcn.004c7886
add esp, 0x10
cmp esi, eax
jne 0x4574fd
lea eax, [ebp + 0x13]
push eax
movzx eax, word [ebp - 0x5e]
lea ecx, [ebp - 0x4c]
push eax
call fcn.00456680
cmp word [ebp - 0x5e], 0
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov dword [ebp + 0x10], ecx
jbe 0x45722a
push dword [ebp + 8]
mov eax, esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.004c7886
add esp, 0x10
movzx eax, word [ebp - 0x5c]
push 1
push eax
push dword [ebp + 8]
call fcn.004c7cd3
add esp, 0xc
cmp byte [ebp + 0x18], 0
je 0x457385
mov ecx, dword [ebp + 0x10]
sub esi, ecx
je 0x457385
add ecx, 4
cmp dword [ebp - 0x64], 0xffffffff
jne 0x457293
lea eax, [esi - 4]
cmp eax, 8
jb 0x457293
test ecx, ecx
je 0x457272
mov edx, dword [ecx]
mov ecx, 0xc
mov dword [ebp - 0x64], edx
jmp 0x457298
mov dword [ebp - 0x18], 0
call fcn.004c6cba
mov dword [eax], 0x16
call fcn.004c19a9
xor edx, edx
mov dword [ebp - 0x64], edx
lea ecx, [edx + 0xc]
jmp 0x457298
mov ecx, 4
mov edx, dword [ebp + 0x10]
add edx, ecx
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0x68], 0xffffffff
jne 0x4572f0
mov eax, esi
sub eax, ecx
cmp eax, 8
jb 0x4572f0
test edx, edx
je 0x4572c2
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x68], eax
mov eax, 8
jmp 0x4572f2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
call fcn.004c6cba
mov dword [eax], 0x16
call fcn.004c19a9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, 8
jmp 0x4572f2
xor eax, eax
mov edx, dword [ebp + 0x10]
add ecx, eax
add edx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x52], 0xffffffff
jne 0x45734c
mov eax, esi
sub eax, ecx
cmp eax, 8
jb 0x45734c
test edx, edx
je 0x45731e
mov eax, dword [edx]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x52], eax
mov eax, 8
jmp 0x45734e
mov dword [ebp + 0xc], 0
mov dword [ebp - 0x28], 0
call fcn.004c6cba
mov dword [eax], 0x16
call fcn.004c19a9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x52], eax
mov eax, 8
jmp 0x45734e
xor eax, eax
add ecx, eax
mov edx, 0xffff
mov eax, dword [ebp + 0x10]
add eax, ecx
cmp word [ebp - 0x5a], dx
jne 0x457385
sub esi, ecx
cmp esi, 4
jb 0x457385
test eax, eax
je 0x45736f
mov esi, dword [eax]
jmp 0x457381
xor esi, esi
call fcn.004c6cba
mov dword [eax], 0x16
call fcn.004c19a9
mov word [ebp - 0x5a], si
sub edi, ebx
lea eax, [edi - 1]
test eax, eax
js 0x45739f
mov edi, edi
cmp byte [ebx + eax], 0x5c
jne 0x45739a
mov byte [ebx + eax], 0x2f
sub eax, 1
jns 0x457390
mov eax, dword [ebp + 0x1c]
cmp edi, dword [eax + 0x10]
jne 0x45740f
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x4573b1
mov ecx, dword [eax]
mov edx, ebx
sub edi, 4
jb 0x4573c9
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4573d2
add edx, 4
add ecx, 4
sub edi, 4
jae 0x4573b8
cmp edi, 0xfffffffc
je 0x4574be
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x45740f
cmp edi, 0xfffffffd
je 0x4574be
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x45740f
cmp edi, 0xfffffffe
je 0x4574be
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x45740f
cmp edi, 0xffffffff
je 0x4574be
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x4574be
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x457458
mov ecx, dword [ebp - 0x44]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x457439
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45755f
push ecx
push edx
call fcn.004b5e6a
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4574a5
mov ecx, dword [ebp - 0x38]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x457486
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45755f
push ecx
push ebx
call fcn.004b5e6a
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov ebx, dword [ebp - 0x14]
inc ebx
mov dword [ebp - 0x14], ebx
cmp bx, word [ebp + 0x14]
jae 0x457546
mov ebx, dword [ebp + 8]
jmp 0x4570f0
mov edi, dword [ebp + 0x20]
test edi, edi
jne 0x4574e3
call fcn.004c6cba
mov dword [eax], 0x16
call fcn.004c19a9
lea ecx, [ebp - 0x4c]
mov byte [ebp + 0x17], 1
call fcn.0041c050
jmp 0x457504
mov ecx, 0xb
mov byte [ebp + 0x17], 1
lea esi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x4c]
movsw word es:[edi], word [esi]
call fcn.0041c050
jmp 0x457504
mov ebx, dword [ebp + 0x10]
mov byte [ebp + 0x17], 0
test ebx, ebx
je 0x457531
mov edx, dword [ebp - 0x38]
sub edx, ebx
cmp edx, 0x1000
jb 0x457527
mov ecx, dword [ebx - 4]
add edx, 0x23
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x45755f
mov ebx, ecx
push edx
push ebx
call fcn.004b5e6a
add esp, 8
mov al, byte [ebp + 0x17]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004025d0
call fcn.004c19b9
int3