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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
push 0x94
mov dword [ebp - 0x20], edi
call fcn.004c0fe9
mov esi, eax
pop ecx
cmp esi, edi
je 0x476f2c
mov ecx, dword [0x551ef0]
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x90], edi
mov dword [esi], 0x52eb2c
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x476f2e
xor esi, esi
cmp esi, edi
je 0x476f52
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push 0x526688
push esi
call dword [eax]
test eax, eax
jl 0x476f49
mov dword [ebp - 0x1c], esi
jmp 0x476f52
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x14]
mov esi, dword [ebp - 0x1c]
push 0x7c
push dword [ebp + 8]
add esi, 0xc
mov dword [ebp - 0x10], esi
call fcn.004c30e4
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
je 0x4770c4
lea esi, [ebp - 0xc]
mov dword [ebp - 8], edi
call fcn.00410760
mov eax, ebx
sub eax, dword [ebp + 8]
sar eax, 1
push eax
push dword [ebp + 8]
mov eax, esi
push eax
call fcn.004104a0
mov eax, dword [0x5527d8]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push dword [ebp - 0xc]
lea esi, [ebx + 2]
push eax
call dword [ecx + 0x60]
mov ebx, eax
cmp ebx, edi
jge 0x476fd3
lea ecx, [ebp - 0xc]
call fcn.00410720
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x476fbf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x476fcc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x4771bb
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ebx, eax
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x477019
lea ecx, [ebp - 0xc]
call fcn.00410720
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x477002
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x47700f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x4771bb
mov ecx, dword [ebx]
push eax
push ebx
call dword [ecx + 0x1c]
mov esi, dword [ebp - 0x10]
mov edi, eax
lea eax, [edi + 2]
push eax
call fcn.004933dd
mov eax, dword [esi]
test eax, eax
jne 0x477060
lea ecx, [ebp - 0xc]
call fcn.00410720
mov eax, dword [ebp - 8]
test eax, eax
je 0x477049
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x477056
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x4771bb
mov ecx, dword [ebx]
push edi
push eax
push dword [ebp - 0x18]
push ebx
call dword [ecx + 0x24]
mov ebx, eax
test ebx, ebx
jge 0x477090
lea ecx, [ebp - 0xc]
call fcn.00410720
mov eax, dword [ebp - 8]
test eax, eax
je 0x477086
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
test eax, eax
jmp 0x476fc4
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov byte [edi + eax], 0
mov eax, dword [esi]
mov byte [eax + edi + 1], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x90], edi
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x20], 0
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x477071
mov eax, dword [ebp - 8]
and dword [ebp - 8], 0
mov dword [ecx], eax
jmp 0x477071
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x477106
call fcn.00419310
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x4770ff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x4771bb
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], edi
je 0x47712d
cmp ebx, edi
je 0x477002
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x477002
cmp eax, 0xffffffff
jne 0x477140
call fcn.00419310
mov esi, eax
cmp ebx, edi
je 0x4770f2
push ebx
jmp 0x4770ec
add eax, 2
push eax
call fcn.004933dd
mov esi, dword [esi]
cmp esi, edi
jne 0x477164
cmp ebx, edi
je 0x47715a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, edi
jmp 0x47704e
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x477132
mov eax, dword [ebp - 0x14]
mov byte [esi + eax], 0
mov eax, dword [ebp - 0x14]
mov byte [esi + eax + 1], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x90], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edi
mov dword [ecx], eax
cmp ebx, edi
je 0x4771b9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x4771b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret