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

Disassembly:
push 0x418
mov eax, 0x537956
call fcn.004ca35e
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x414], eax
call fcn.00464a38
push eax
lea ecx, [ebp - 0xc0]
call fcn.004615e5
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00464a44
mov ecx, eax
call fcn.00461e08
test al, al
je 0x47dda9
push edi
lea ecx, [ebp - 0xc0]
call fcn.0046187b
push ebx
push 0x80
push 3
push ebx
push 1
push accept
lea ecx, [ebp - 0xc0]
call fcn.00461823
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x404], eax
cmp eax, 0xffffffff
jne 0x47dd55
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0046170c
jmp 0x47df34
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x47dd41
push esi
mov dword [ebp - 0x418], ebx
call fcn.004ca504
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x418]
push eax
push esi
push edi
push dword [ebp - 0x404]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x404]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x418], esi
je 0x47df1d
push edi
call fcn.004ca50d
pop ecx
jmp 0x47dd41
call fcn.00464a44
push eax
lea ecx, [ebp - 0xc0]
call fcn.0046185e
call fcn.00464a50
push eax
lea ecx, [ebp - 0x1c8]
call fcn.004615e5
mov byte [ebp - 4], 1
call fcn.00464df2
test al, al
je 0x47dde7
call fcn.00464a4a
mov esi, eax
mov dword [ebp - 0x404], esi
jmp 0x47de2a
push ebx
lea ecx, [ebp - 0x1c8]
call fcn.00461823
push eax
call fcn.0046a0e4
pop ecx
pop ecx
mov edi, eax
lea ecx, [ebp - 0xc0]
push edi
call fcn.00461823
push eax
call fcn.0048cea0
mov esi, eax
mov dword [ebp - 0x404], esi
pop ecx
pop ecx
test edi, edi
je 0x47de24
push edi
call fcn.004ca50d
pop ecx
mov edi, dword [ebp - 0x408]
test esi, esi
jne 0x47de3e
lea ecx, [ebp - 0x1c8]
call fcn.0046170c
jmp 0x47dd41
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x410], ebx
call fcn.0046160a
push 0x550018
push 0x53f474
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.00461fc4
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
lea ecx, [ebp - 0x144]
call fcn.00461823
push eax
push esi
call fcn.0048c86e
add esp, 0x14
test eax, eax
je 0x47dea1
lea ecx, [ebp - 0x144]
call fcn.0046170c
jmp 0x47de2e
mov esi, dword [ebp - 0x1cc]
test esi, esi
je 0x47de94
push esi
call fcn.004ca504
push esi
mov edi, eax
push edi
push dword [ebp - 0x410]
push dword [ebp - 0x404]
call fcn.0048d2df
add esp, 0x14
test eax, eax
je 0x47def2
cmp eax, 0x600
je 0x47def2
push edi
call fcn.004ca50d
pop ecx
call fcn.00464df2
test al, al
jne 0x47de94
push dword [ebp - 0x404]
call fcn.0048c651
pop ecx
jmp 0x47de94
call fcn.00464df2
test al, al
jne 0x47df07
push dword [ebp - 0x404]
call fcn.0048c651
pop ecx
lea ecx, [ebp - 0x144]
call fcn.0046170c
lea ecx, [ebp - 0x1c8]
call fcn.0046170c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0046170c
test edi, edi
jne 0x47dfb6
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x408], eax
cmp eax, 0xffffffff
je 0x47dfaf
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x47dfaf
push esi
mov dword [ebp - 0x404], ebx
call fcn.004ca504
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x404]
push eax
push esi
push edi
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x404], esi
je 0x47dfab
push edi
call fcn.004ca50d
pop ecx
mov edi, ebx
test edi, edi
jne 0x47dfb6
xor eax, eax
jmp 0x47e275
push esi
lea eax, [ebp - 0x40c]
push edi
push eax
call fcn.004cbd50
add esp, 0xc
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x47e273
mov esi, dword [ebp - 0x41c]
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
test esi, esi
jne 0x47e00c
push 0x64
push dword [ebp + 0x14]
call fcn.004cc300
call fcn.004cb380
push eax
call edi
mov ecx, dword [ebp - 0x40c]
mov esi, eax
mov dword [ebp - 0x41c], esi
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x47e034
push 0x64
push dword [ebp + 0x14]
call fcn.004cbd40
call fcn.004cb380
push eax
call edi
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x414], eax
push ebx
push eax
push esi
lea eax, [ebp - 0x424]
push eax
call fcn.004cbfe0
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 4
je 0x47e24a
xor eax, eax
lea ecx, [ebp - 0x424]
inc eax
push eax
push 3
push 2
push eax
push ebx
call fcn.004cbc30
lea ecx, [ebp - 0x424]
call fcn.004cbd20
push 0x2c
mov edi, eax
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00502550
add esp, 0xc
mov ecx, dword [ebp - 0x414]
xor eax, eax
mov dword [ebp - 0x3c], 0x28
inc eax
mov dword [ebp - 0x38], esi
mov word [ebp - 0x30], ax
neg ecx
push 0x20
pop eax
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x414]
imul eax, esi
push ebx
push ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x410], eax
shl eax, 2
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x400]
push eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x3f9], bl
push eax
push ebx
mov dword [ebp - 0x400], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x408], eax
test eax, eax
je 0x47e24a
mov edx, dword [ebp - 0x410]
mov esi, ebx
test edx, edx
jle 0x47e1ec
mov eax, dword [ebp - 0x400]
mov cl, byte [edi + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov eax, 0xff
mov ecx, dword [ebp - 0x400]
cmp byte [ecx + esi*4 + 3], al
jae 0x47e18b
movzx ecx, byte [edi + esi*4 + 3]
xor edx, edx
movzx eax, byte [edi + esi*4 + 2]
imul eax, ecx
mov ecx, 0xff
mov byte [ebp - 0x3f9], 1
div ecx
mov ecx, dword [ebp - 0x400]
xor edx, edx
mov byte [ecx + esi*4], al
movzx ecx, byte [edi + esi*4 + 3]
movzx eax, byte [edi + esi*4 + 1]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x400]
xor edx, edx
mov byte [ecx + esi*4 + 1], al
movzx ecx, byte [edi + esi*4 + 3]
movzx eax, byte [edi + esi*4]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x410]
mov byte [ecx + esi*4 + 2], al
jmp 0x47e1ad
mov al, byte [edi + esi*4 + 2]
mov byte [ecx + esi*4], al
mov eax, dword [ebp - 0x400]
mov cl, byte [edi + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x400]
mov cl, byte [edi + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x400]
mov ecx, dword [ebp + 0x18]
cmp dword [eax + esi*4], ecx
jne 0x47e1e3
mov byte [eax + esi*4], bl
mov eax, dword [ebp - 0x400]
mov byte [ebp - 0x3f9], 1
mov byte [eax + esi*4 + 1], bl
mov eax, dword [ebp - 0x400]
mov byte [eax + esi*4 + 2], bl
mov eax, dword [ebp - 0x400]
mov byte [eax + esi*4 + 3], bl
inc esi
cmp esi, edx
jl 0x47e0ff
push 0xa4
call fcn.004c9ff3
mov esi, eax
pop ecx
mov dword [ebp - 0x410], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x47e211
lea ecx, [esi + 0x18]
call fcn.0046162e
jmp 0x47e213
mov esi, ebx
mov eax, dword [ebp - 0x408]
mov dword [esi], eax
mov eax, dword [ebp - 0x41c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x414]
mov dword [esi + 0x10], eax
mov al, byte [ebp - 0x3f9]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ebx, esi
mov byte [esi + 0x14], al
mov eax, dword [ebp - 0x400]
mov dword [esi + 0xa0], eax
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x47e259
call fcn.0040917c
cmp dword [ebp - 0x40c], 0
je 0x47e273
push dword [ebp - 0x40c]
lea ecx, [ebp - 0x40c]
call fcn.00477ab4
mov eax, ebx
call fcn.004ca308
ret