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

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x24]
xor esi, esi
cmp edi, esi
mov dword [esp + 8], esi
jne 0x552fd7
cmp dword [esp + 0x28], 0xffffffff
jne 0x552fd7
pop edi
mov eax, 0x80070057
pop esi
add esp, 0x14
ret 0xc
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push ebx
call fcn.00552f00
cmp edi, esi
je 0x553031
cmp word [edi], si
je 0x553031
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x104
lea ebp, [ebx + 0x10]
push edi
push ebp
mov dword [esp + 0x3c], eax
call dword [0x5d2618]
mov word [ebp + 0x206], 0
mov ebp, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x553039
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x30], ebp
cmp ebp, 0xffffffff
jne 0x553048
mov ebp, 0x8004e007
jmp 0x553206
lea eax, [ebx + 0x224]
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
push eax
push ecx
push ecx
push ebp
mov dword [edx + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x553085
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x230], ecx
mov dword [ebx + 0x234], edx
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, 0x100000
jbe 0x5530b3
mov ebp, 0x8004e03a
jmp 0x5531d1
test edi, edi
jne 0x5530be
xor ebp, ebp
jmp 0x5531d1
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x5530de
mov ebp, 0x8007000e
jmp 0x5531d1
push 0
lea eax, [esp + 0x30]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5531cc
lea eax, [ebx + 0x218]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebp, eax
xor edx, edx
cmp ebp, edx
jl 0x5531d1
mov cl, byte [esi]
cmp cl, 0xff
mov eax, esi
jne 0x553131
cmp byte [esi + 1], 0xfe
jne 0x553131
mov dword [ebx + 8], 1
lea eax, [esi + 2]
sub edi, 2
jmp 0x553169
cmp cl, 0xfe
jne 0x55314f
cmp byte [esi + 1], 0xff
jne 0x55314f
mov eax, 1
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
lea eax, [esi + 2]
sub edi, 2
jmp 0x553169
cmp cl, 0xef
jne 0x553166
cmp byte [esi + 1], 0xbb
jne 0x553166
cmp byte [esi + 2], 0xbf
jne 0x553166
lea eax, [esi + 3]
sub edi, 3
mov dword [ebx + 8], edx
mov ecx, dword [ebx + 0x218]
mov ebp, dword [ecx]
push edx
push edi
push eax
push ecx
call dword [ebp + 0x10]
mov ebp, eax
mov eax, dword [ebx + 0x218]
xor ecx, ecx
cmp ebp, ecx
jge 0x553198
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 0x218], 0
jmp 0x5531d1
mov edx, dword [eax]
push 0
push 0
push ecx
push ecx
push eax
mov dword [esp + 0x34], ecx
call dword [edx + 0x14]
mov dword [ebx + 0x21c], edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x5531d1
mov ebp, 0x8004e008
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5531e4
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jge 0x553220
test esi, esi
je 0x553206
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx + 0x218]
test eax, eax
je 0x553220
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 0x218], 0
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret 0xc