Function at 0x4c67f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a651e
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x20], eax
xor esi, esi
mov dword [esp + 0x170], esi
mov dword [esp + 0x1c], esi
push esi
push 0x80
push 3
push esi
push 3
mov byte [esp + 0x184], 1
mov edi, dword [esp + 0x18c]
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4c68a7
call fcn.004129d0
mov ebp, eax
cmp ebp, esi
jge 0x4c68ad
lea eax, [edi - 0x10]
mov dword [esp + 0x170], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c68a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
jmp 0x4c6b44
mov esi, eax
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x24], ebx
jne 0x4c68d1
call fcn.004129d0
test eax, eax
jl 0x4c68d6
mov ebx, dword [esp + 0x24]
cmp ebx, 0x4c
jae 0x4c6901
test esi, esi
je 0x4c68e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x170], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4c6b33
push ebx
call fcn.0057740a
add esp, 4
push ebx
mov ebp, eax
push 0
push ebp
call fcn.00580260
add esp, 0xc
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebp
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c6978
call fcn.004129d0
mov ebx, eax
test ebx, ebx
jge 0x4c6985
test esi, esi
je 0x4c694a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x170], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c6971
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x4c6b44
cmp dword [esp + 0x18], ebx
je 0x4c6989
mov ebx, 0x80070026
jmp 0x4c693f
mov ebx, dword [esp + 0x24]
cmp dword [ebp], 0x51505545
jne 0x4c6b0d
cmp word [ebp + 4], 1
jne 0x4c6b0d
mov esi, 0x4c
cmp ebx, esi
jbe 0x4c6ae6
mov edi, edi
movzx eax, byte [esi + ebp + 0x20]
add eax, 0x21
cmp dword [esi + ebp], 0x55454e47
jne 0x4c6ae6
add eax, esi
cmp eax, ebx
mov dword [esp + 0x18], eax
ja 0x4c6ae6
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
mov byte [esp + 0x170], 2
mov eax, dword [esi + ebp + 0xc]
mov ecx, dword [esi + ebp]
mov edx, dword [esi + ebp + 4]
push 0x103
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + ebp + 8]
mov dword [esp + 0x3c], edx
mov dl, byte [esi + ebp + 0x20]
lea eax, [esp + 0x61]
push 0
push eax
mov dword [esp + 0x48], ecx
mov byte [esp + 0x60], dl
mov byte [esp + 0x68], 0
call fcn.00580260
movzx ecx, byte [esi + ebp + 0x20]
add esp, 0xc
push ecx
lea edx, [esi + ebp + 0x21]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.0057cac0
lea eax, [esp + 0x68]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4c6a51
sub eax, ecx
lea ecx, [esp + 0x5c]
mov edi, eax
push ecx
lea eax, [esp + 0x5c]
call fcn.004082b0
mov esi, dword [esp + 0x20]
mov edi, dword [esi + 4]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x5c]
call fcn.004c7da0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x4c6a8f
cmp eax, dword [esp + 0x20]
je 0x4c6a94
call fcn.00578ff3
cmp dword [esi + 4], edi
jne 0x4c6ab2
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x58]
push eax
call fcn.004c7890
mov esi, eax
lea eax, [esp + 0x30]
call fcn.004c6740
mov esi, dword [esp + 0x18]
mov byte [esp + 0x170], 1
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c6ade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jb 0x4c69b0
push ebp
call fcn.0057832c
add esp, 4
lea esi, [esp + 0x1c]
call fcn.00410620
call fcn.00410620
lea ecx, [esp + 0x178]
call fcn.00404510
xor eax, eax
jmp 0x4c6b44
test esi, esi
je 0x4c6b18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x170], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c6b3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x8007000b
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.005787fd
add esp, 0x160
ret 8