Function at 0x47fa80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d78a8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
je 0x47fad6
or dword [ebx + 0x10], 2
cmp byte [ebp + 0x10], 0
je 0x47fae0
or dword [ebx + 0x10], 4
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
jne 0x47fb18
mov eax, dword [ebx + 0x10]
shr eax, 2
mov dword [ebx + 4], 0
test al, 1
jne 0x47fe72
jmp 0x47fe2f
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea esi, [ebx + 8]
movq qword [ebp - 0x1c], xmm0
mov dword [esi], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push esi
push 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ecx
push eax
call edi
test eax, eax
jne 0x47fbcc
mov eax, dword [ebx + 0x10]
shr eax, 2
test al, 1
jne 0x47feaa
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x47fbbd
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x47fb9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fee4
push edx
push ecx
call fcn.004bcfdd
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x44]
call fcn.00428650
xor eax, eax
jmp 0x47fe54
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
mov ecx, eax
call fcn.0042cba0
push 0
push esi
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebx + 4]
call edi
test eax, eax
je 0x47fee9
mov eax, dword [ebp - 0x18]
xor edi, edi
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], edi
sub eax, ecx
je 0x47fdf3
push 0x5674e4
push 0x1c
call fcn.004bd047
mov esi, eax
add esp, 8
mov dword [ebp - 0x48], esi
test esi, esi
je 0x47fc35
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi], 0
jmp 0x47fc45
mov eax, dword [ebx + 0x10]
xor esi, esi
shr eax, 2
test al, 1
jne 0x47feaa
mov eax, dword [ebp - 0x1c]
add eax, edi
lea edi, [esi + 4]
mov dword [ebp - 0x48], eax
mov ecx, edi
push edi
mov al, byte [eax]
mov byte [esi], al
movzx eax, al
push eax
call fcn.0042cba0
movzx eax, byte [esi]
push eax
mov eax, dword [ebp - 0x48]
inc eax
push eax
push dword [edi]
call fcn.004bebc0
mov eax, dword [edi + 4]
add esp, 0xc
mov byte [ebp - 0x49], 0
cmp dword [edi + 8], eax
je 0x47fc87
mov byte [eax], 0
inc dword [edi + 4]
jmp 0x47fc93
lea ecx, [ebp - 0x49]
push ecx
push eax
mov ecx, edi
call fcn.0047f740
mov al, byte [esi]
xor dl, dl
test al, al
je 0x47fcb4
nop dword [eax + eax]
movzx eax, byte [esi]
movzx ecx, dl
sub al, dl
add ecx, dword [edi]
inc dl
add byte [ecx], al
mov al, byte [esi]
cmp dl, al
jb 0x47fca0
movzx edx, al
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
movzx ecx, byte [edx + eax + 2]
movzx eax, byte [edx + eax + 1]
shl eax, 8
or ecx, eax
mov eax, dword [ebp - 0x48]
shl ecx, 8
movzx eax, byte [edx + eax + 3]
or ecx, eax
mov eax, dword [ebp - 0x48]
shl ecx, 8
movzx eax, byte [edx + eax + 4]
or ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x10], ecx
movzx ecx, byte [edx + eax + 5]
movzx eax, byte [edx + eax + 6]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x48]
shl ecx, 8
movzx eax, byte [edx + eax + 7]
or ecx, eax
mov eax, dword [ebp - 0x48]
shl ecx, 8
movzx eax, byte [edx + eax + 8]
add edx, 9
or ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x14], ecx
movzx ecx, byte [edx + eax]
movzx eax, byte [edx + eax + 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x48]
shl ecx, 8
movzx eax, byte [edx + eax + 2]
or ecx, eax
mov eax, dword [ebp - 0x48]
shl ecx, 8
movzx eax, byte [edx + eax + 3]
or ecx, eax
mov eax, dword [ebp - 0x50]
add eax, 4
mov dword [esi + 0x18], ecx
add eax, edx
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x50], eax
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47fd70
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00428740
mov dword [ebp - 0x58], esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx + 0x54]
call fcn.0043df90
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebx + 0x54]
call fcn.00480b70
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x47fde0
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47fdd6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fee4
push edx
push ecx
call fcn.004bcfdd
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
mov edi, dword [ebp - 0x50]
cmp edi, eax
jb 0x47fc03
or dword [ebx + 0x10], 1
mov byte [ebp - 4], 0
test ecx, ecx
je 0x47fe2c
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x47fe22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fefe
push edx
push ecx
call fcn.004bcfdd
add esp, 8
mov esi, dword [ebp - 0x54]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47fe34
sub ecx, edx
push ecx
push esi
lea ecx, [ebx + 0x3c]
call fcn.00428740
lea ecx, [ebp - 0x44]
call fcn.00428650
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0x510b08
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a9b80
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00428650
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042b7b0
push 0x52350c
lea eax, [ebp - 0x28]
push eax
call fcn.004bf896
push dword [ebp - 0x54]
lea eax, [ebp - 0x6c]
push 0x510b24
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a9b80
add esp, 0x10
lea ecx, [ebp - 0x6c]
call fcn.00428650
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004286b0
push 0x523470
lea eax, [ebp - 0x6c]
push eax
call fcn.004bf896
call fcn.004c12b9
push 0x523634
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x510b50
push eax
call fcn.004bf896
call fcn.004c12b9
int3