Function at 0x4a1350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x440], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x414], edx
mov edx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x434], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x438], edx
lea edx, [ebp - 0x408]
push edx
xor ebx, ebx
push 0x531ac0
mov dword [ebp - 0x42c], ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x40c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [ebp - 0x408]
test eax, eax
js 0x4a175e
cmp esi, ebx
je 0x4a175e
lea eax, [ebx + 0x10]
mov ecx, 0x531ad0
mov edx, 0x531ac0
lea ebx, [ebx]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x4a1423
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4a1400
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
push 1
push esi
call ecx
jmp 0x4a14b5
movzx eax, byte [edx]
movzx edi, byte [ecx]
sub eax, edi
jne 0x4a144f
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x4a144f
movzx eax, byte [edx + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x4a144f
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
cmp eax, ebx
jne 0x4a1465
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
push 1
push esi
call ecx
jmp 0x4a14b5
mov esi, dword [0x5563e8]
mov edi, esi
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dl, byte [edi + 0x51]
push esi
mov byte [ebp - 0x40d], dl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x40d], bl
je 0x4a14b5
push 0x531ae0
push 0x531ac0
call fcn.004a0410
add esp, 8
test eax, eax
je 0x4a14b5
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push 1
push eax
call edx
lea eax, [ebp - 0x41c]
push eax
push 0x53a910
push 1
push ebx
push 0x514440
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp - 0x41c]
js 0x4a175e
cmp eax, ebx
je 0x4a175e
mov ecx, dword [eax]
lea edx, [ebp - 0x418]
push edx
mov edx, dword [ebp - 0x408]
push 0x531ac0
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4a17d4
cmp dword [ebp - 0x418], ebx
je 0x4a17d4
mov eax, dword [ebp - 0x408]
lea edx, [ebp - 0x428]
push edx
mov dword [ebp - 0x428], ebx
mov ecx, dword [eax]
push str.fE_t
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jl 0x4a1574
mov esi, dword [ebp - 0x428]
cmp esi, ebx
je 0x4a1574
mov ecx, dword [ebp - 0x414]
mov edi, dword [esi]
push ebx
call fcn.0041a1e0
mov ecx, dword [edi + 0xc]
push eax
push esi
call ecx
mov esi, eax
mov eax, dword [ebp - 0x428]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x428], ebx
cmp esi, ebx
jge 0x4a16d3
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
lea edx, [ebp - 0x424]
push edx
push 0x531b30
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4a16d3
cmp dword [ebp - 0x424], ebx
je 0x4a175e
lea ecx, [ebp - 0x40c]
push ecx
push 1
push ebx
mov dword [ebp - 0x414], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x4a17cc
cmp dword [ebp - 0x40c], ebx
je 0x4a17cc
mov eax, dword [ebp - 0x42c]
cmp eax, 0xffffffff
je 0x4a175e
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [ebp - 0x414]
push edx
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push eax
call esi
test eax, eax
je 0x4a175e
mov ecx, dword [ebp - 0x414]
cmp ecx, ebx
jbe 0x4a1662
lea esp, [esp]
mov eax, dword [ebp - 0x40c]
lea edi, [ebp - 0x430]
push edi
push ecx
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x430], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ecx
push eax
call edx
mov edx, dword [ebp - 0x42c]
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push edx
call esi
test eax, eax
je 0x4a175e
mov ecx, dword [ebp - 0x414]
cmp ecx, ebx
ja 0x4a1610
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x40c]
mov ecx, dword [eax]
push ebx
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
jl 0x4a1763
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
lea edx, [ebp - 0x420]
push edx
mov edx, dword [ebp - 0x40c]
push 0x531ab0
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4a1758
cmp dword [ebp - 0x420], ebx
je 0x4a1758
mov eax, dword [ebp - 0x40c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [ebp - 0x440]
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp - 0x43c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, ebx
jl 0x4a1763
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov esi, eax
cmp esi, ebx
jl 0x4a1763
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x420]
cmp eax, ebx
je 0x4a1727
xor eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x434]
cmp ecx, ebx
je 0x4a1739
mov edx, dword [ebp - 0x418]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x438]
cmp ecx, ebx
je 0x4a17b9
pop edi
mov dword [ecx], eax
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x420], ebx
mov esi, 0x80004005
mov eax, dword [ebp - 0x408]
cmp eax, ebx
je 0x4a1775
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
mov eax, dword [ebp - 0x40c]
cmp eax, ebx
je 0x4a1787
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0x418]
cmp ecx, ebx
je 0x4a17a0
mov eax, dword [ebp - 0x41c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x420]
cmp ecx, ebx
je 0x4a17b9
mov eax, dword [ebp - 0x41c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x40c], ebx
jmp 0x4a175e
mov dword [ebp - 0x418], ebx
jmp 0x4a175e