Function at 0x4f7af0
Capabilities:
Get file size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53732b
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x984164]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x1c], eax
call fcn.0041cfe0
xor ebx, ebx
mov dword [esp + 0x480], ebx
push edi
mov dword [esp + 0x3c], 1
call fcn.0041c0f0
add esp, 4
push ebx
push 0x80
push 3
push ebx
mov esi, eax
push 1
push 0x80100000
test esi, esi
je 0x4f7b89
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
push esi
mov dword [esp + 0x40], eax
call fcn.00507bce
add esp, 4
jmp 0x4f7b94
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esp + 0x3c], eax
or esi, 0xffffffff
cmp dword [esp + 0x3c], esi
jne 0x4f7bb4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.0041c040
mov ebx, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jl 0x4f7bbc
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x4f7bd6
mov dword [esp + 0x480], esi
lea ecx, [esp + 0x24]
call fcn.0041d060
mov eax, 0xe0010057
jmp 0x4f7e30
push 0x200
lea edx, [esp + 0x70]
push 0
push edx
call fcn.0051c1b0
add esp, 0xc
push 0x5c
push edi
call fcn.00508605
add esp, 8
test eax, eax
jne 0x4f7bfd
mov eax, edi
jmp 0x4f7c00
add eax, 2
xor ecx, ecx
cmp word [eax + ecx*2], 0
je 0x4f7c16
mov dl, byte [eax + ecx*2]
mov byte [esp + ecx + 0x6c], dl
inc ecx
cmp ecx, 0x64
jl 0x4f7c02
mov eax, dword [str.000644]
mov ecx, dword [0x978638]
lea edx, [esp + 0x1c]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x3c]
push edx
xor edi, edi
push eax
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f7c75
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
test eax, eax
je 0x4f7c75
call ebx
test eax, eax
je 0x4f7c91
xor ecx, ecx
cmp dword [ecx + 0x924170], eax
je 0x4f7c91
add ecx, 8
cmp ecx, 0xe8
jb 0x4f7c60
jmp 0x4f7c91
mov ecx, dword [esp + 0x1c]
push 1
push 0
push 0
push ecx
call fcn.005183d0
mov edi, eax
xor eax, eax
add edi, esi
adc edx, eax
mov dword [esp + 0x20], edx
mov eax, edi
mov byte [esp + 0xf3], 0
mov esi, 0xb
mov ecx, eax
and ecx, 0x80000007
jns 0x4f7caf
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
and edx, 7
add eax, edx
add cl, 0x30
sar eax, 3
sub esi, 1
mov byte [esp + esi + 0xe8], cl
jne 0x4f7ca0
xor edi, edi
xor eax, eax
mov byte [esp + 0xff], al
lea esi, [edi + 0xb]
mov ecx, eax
and ecx, 0x80000007
jns 0x4f7ce4
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
and edx, 7
add eax, edx
add cl, 0x30
sar eax, 3
sub esi, 1
mov byte [esp + esi + 0xf4], cl
jne 0x4f7cd5
mov ecx, dword [str.ustar]
mov edx, dword [0x978640]
mov eax, 0x20202020
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x16d], ecx
xor eax, eax
mov dword [esp + 0x171], edx
mov byte [esp + 0x108], 0x30
xor ecx, ecx
movsx edx, byte [esp + ecx + 0x6c]
inc ecx
add eax, edx
cmp ecx, 0x200
jb 0x4f7d35
mov byte [esp + 0x107], 0
mov esi, 7
mov ecx, eax
and ecx, 0x80000007
jns 0x4f7d61
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
and edx, 7
add eax, edx
add cl, 0x30
sar eax, 3
sub esi, 1
mov byte [esp + esi + 0x100], cl
jne 0x4f7d52
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push edi
push edi
push 0x200
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call edx
push 0x200
lea eax, [esp + 0x270]
push edi
push eax
call fcn.0051c1b0
mov eax, dword [esp + 0x3c]
add esp, 0xc
push edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x34]
push 0x200
lea edx, [esp + 0x278]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [edx + 0x28]
push ecx
lea ecx, [esp + 0x3c]
call eax
cmp eax, edi
mov eax, dword [esp + 0x14]
jl 0x4f7de2
add dword [esp + 0x2c], eax
adc dword [esp + 0x30], edi
cmp eax, edi
je 0x4f7e06
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
push edi
push edi
push 0x200
lea eax, [esp + 0x278]
push eax
mov ecx, esi
call edx
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x4f7d92
mov eax, dword [esp + 0x3c]
or esi, 0xffffffff
cmp eax, esi
je 0x4f7e18
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x480], esi
lea ecx, [esp + 0x24]
call fcn.0041d060
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.005078c8
mov esp, ebp
pop ebp
ret