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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ba20
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4b900c]
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 dword [ebp - 0x4c], edx
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov dword [ebp - 4], 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
je 0x47cd55
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x47cd4c
cmp dword [ebp - 0x3c], 0
jg 0x47cd4c
mov eax, dword [ebp - 0x40]
jl 0x47cbd9
cmp eax, 0xa00000
jae 0x47cd4c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], 0
push ecx
push eax
call fcn.0047d4b0
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x30]
sub ecx, eax
push 0
push edx
push ecx
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47cd4c
push dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.00424690
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x400
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0043ef10
xor esi, esi
or ebx, 0xffffffff
test edi, edi
jle 0x47cd28
mov ecx, dword [ebp - 0x18]
test esi, esi
js 0x47cda6
mov eax, dword [ebp - 0x20]
cmp esi, dword [eax - 0xc]
jg 0x47cda6
movzx eax, word [eax + esi*2]
mov edx, eax
mov dword [ebp - 0x24], eax
cmp edx, 0xa
je 0x47ccbb
cmp edx, 0xd
je 0x47cd1f
cmp edx, 0x20
jb 0x47cd1f
cmp dword [ebp - 0x14], ecx
je 0x47cca9
mov word [ecx], ax
add ecx, 2
jmp 0x47cd1c
lea eax, [ebp - 0x24]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043ef70
mov ecx, dword [ebp - 0x18]
jmp 0x47cd1f
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x14], ecx
je 0x47ccd4
xor eax, eax
mov word [ecx], ax
add ecx, 2
mov dword [ebp - 0x18], ecx
jmp 0x47cce1
lea eax, [ebp - 0x24]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043ef70
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
call fcn.00406fc0
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.0047c970
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47cd19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
inc esi
cmp esi, edi
jl 0x47cc68
lea ecx, [ebp - 0x1c]
call fcn.0040aca0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x47cd4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x47cd85
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x47cd7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47cda1
push edx
push ecx
call fcn.0047ea92
add esp, 8
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.0047e577
mov esp, ebp
pop ebp
ret
call fcn.004821b3
push 0x80070057
call fcn.004048d0
int3