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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x476b7c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea ebx, [ebp - 0xc]
mov edi, 0x47bc80
xor eax, eax
push ebp
push 0x477158
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x47713d
push 2
push 0
push 0xfffffffffffffffc
push esi
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
push esi
call sub.kernel32.dll_ReadFile
xor dword [ebx], 0x3d637569
push 0
push esi
call sub.kernel32.dll_GetFileSize
cmp eax, dword [ebx]
jb 0x47713d
push 2
push 0
mov eax, dword [ebx]
neg eax
push eax
push esi
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 0x14]
mov edx, dword [ebx]
call fcn.00404888
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
push eax
lea eax, [ebp - 0x14]
call fcn.00404754
push eax
push esi
call sub.kernel32.dll_ReadFile
push esi
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x14]
call fcn.00476a00
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x18]
mov edx, 0x477180
call fcn.00404648
jne 0x47713d
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [edi + 4]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
push edi
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [edi + 8]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x1c]
mov edx, 0x477198
call fcn.00404648
sete al
neg al
sbb eax, eax
mov dword [edi + 0xc], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x20]
call fcn.00476b60
mov dword [edi + 0x10], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x24]
call fcn.00476b60
mov dword [edi + 0x14], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x28]
call fcn.00476b60
mov dword [edi + 0x18], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x2c]
call fcn.00476b60
mov dword [edi + 0x1c], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x30]
call fcn.00476b60
mov dword [edi + 0x20], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x34]
call fcn.00476b60
mov dword [edi + 0x24], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x38]
call fcn.00476b60
mov dword [edi + 0x28], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x3c]
mov edx, 0x477198
call fcn.00404648
sete al
neg al
sbb eax, eax
mov dword [edi + 0x2c], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x40]
mov edx, 0x477198
call fcn.00404648
sete al
neg al
sbb eax, eax
mov dword [edi + 0x30], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x44]
mov edx, 0x477198
call fcn.00404648
sete al
neg al
sbb eax, eax
mov dword [edi + 0x34], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x48]
call fcn.00476b60
mov dword [edi + 0x38], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov eax, dword [ebp - 0x4c]
call fcn.00476b60
mov dword [edi + 0x3c], eax
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov edx, dword [ebp - 0x14]
mov eax, 0x477174
call fcn.00404840
mov dword [ebx], eax
cmp dword [ebx], 0
jle 0x47713d
lea eax, [edi + 0x40]
push eax
mov ecx, dword [ebx]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040475c
mov ecx, dword [ebx]
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040479c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47715f
lea eax, [ebp - 0x4c]
mov edx, 0xf
call fcn.00404260
ret