Function at 0x4815a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
push esi
push edi
mov dword [ebp - 0x438], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x434], ecx
lea ecx, [ebp - 0x408]
push ecx
xor edi, edi
push 0x506020
push 4
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], edx
mov edx, dword [ebp + 0x14]
push edi
push eax
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x40c], 0xffffffff
mov dword [ebp - 0x414], edi
call ebx
mov esi, eax
cmp esi, edi
jl 0x481932
cmp dword [ebp - 0x408], edi
jne 0x48164a
mov ebx, dword [ebp - 0x40c]
mov esi, 0x80004005
jmp 0x48194a
lea edx, [ebp - 0x418]
push edx
push 0x50ef70
push 1
push edi
push 0x4ea120
call ebx
mov esi, eax
cmp esi, edi
jl 0x481932
mov eax, dword [ebp - 0x418]
cmp eax, edi
je 0x48192d
mov ecx, dword [eax]
lea edx, [ebp - 0x41c]
push edx
mov edx, dword [ebp - 0x408]
push 0x506020
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, edi
jl 0x481932
cmp dword [ebp - 0x41c], edi
je 0x48192d
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
lea edx, [ebp - 0x424]
push edx
push 0x5060c0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x481840
cmp dword [ebp - 0x424], edi
je 0x481840
lea ecx, [ebp - 0x414]
push ecx
push 1
push edi
mov dword [ebp - 0x410], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, eax
cmp esi, edi
jl 0x481932
cmp dword [ebp - 0x414], edi
je 0x48192d
mov ecx, dword [ebp - 0x420]
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
call fcn.00417930
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x481836
push edi
lea edx, [ebp - 0x410]
push edx
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x481836
mov ecx, dword [ebp - 0x410]
cmp ecx, edi
jbe 0x4817b0
jmp 0x481760
mov eax, dword [ebp - 0x414]
lea esi, [ebp - 0x420]
push esi
push ecx
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x420], edi
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ecx
push eax
call edx
push edi
lea eax, [ebp - 0x410]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x481836
mov ecx, dword [ebp - 0x410]
cmp ecx, edi
ja 0x481760
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x414]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push edi
push ecx
push eax
mov dword [ebp - 0x40c], 0xffffffff
call edx
mov esi, eax
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, edi
jl 0x481932
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
lea edx, [ebp - 0x428]
push edx
mov edx, dword [ebp - 0x414]
push 0x506000
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, edi
jl 0x481932
cmp dword [ebp - 0x428], edi
je 0x48192d
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4818a4
mov esi, 0x80004005
jmp 0x481938
mov eax, dword [ebp - 0x408]
lea edx, [ebp - 0x410]
push edx
mov dword [ebp - 0x410], edi
mov ecx, dword [eax]
push 0x5060b0
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, edi
jl 0x481932
mov esi, dword [ebp - 0x410]
cmp esi, edi
je 0x48192d
mov ecx, dword [ebp - 0x420]
mov ebx, dword [esi]
push edi
call fcn.00417930
mov ecx, dword [ebx + 0xc]
push eax
push esi
call ecx
mov esi, eax
mov eax, dword [ebp - 0x410]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp esi, edi
jl 0x481932
mov edx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp - 0x42c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, edi
jl 0x481932
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x481932
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x428]
cmp eax, edi
je 0x4818f8
xor eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x434]
cmp ecx, edi
je 0x48190a
mov edx, dword [ebp - 0x41c]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x430]
cmp ecx, edi
je 0x48199a
pop edi
mov dword [ecx], eax
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov esi, 0x80004005
mov ebx, dword [ebp - 0x40c]
mov eax, dword [ebp - 0x408]
cmp eax, edi
je 0x48194a
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
mov eax, dword [ebp - 0x414]
cmp eax, edi
je 0x48195c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp ebx, 0xffffffff
je 0x481968
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x41c]
cmp ecx, edi
je 0x481981
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x428]
cmp ecx, edi
je 0x48199a
mov eax, dword [ebp - 0x418]
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.00401306
mov esp, ebp
pop ebp
ret