Function at 0x49e9c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x434], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x424], edx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x430], ecx
lea ecx, [ebp - 0x408]
push ecx
xor ebx, ebx
push 0x52d680
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
push edx
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x410], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x49edb9
cmp dword [ebp - 0x408], ebx
je 0x49edb9
mov ecx, 0x52d680
lea eax, [ebx + 0x10]
mov edx, ecx
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x49ea8e
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x49ea65
mov eax, dword [ebp - 0x408]
mov edx, dword [eax]
push 1
push eax
mov eax, dword [edx + 0x28]
call eax
jmp 0x49eb23
movzx eax, byte [edx]
movzx esi, byte [ecx]
sub eax, esi
jne 0x49eaba
movzx eax, byte [edx + 1]
movzx esi, byte [ecx + 1]
sub eax, esi
jne 0x49eaba
movzx eax, byte [edx + 2]
movzx esi, byte [ecx + 2]
sub eax, esi
jne 0x49eaba
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
cmp eax, ebx
jne 0x49ead6
mov eax, dword [ebp - 0x408]
mov edx, dword [eax]
push 1
push eax
mov eax, dword [edx + 0x28]
call eax
jmp 0x49eb23
mov eax, dword [0x5513c0]
lea esi, [eax + 4]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x51]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x49eb1b
push 0x52d690
push 0x52d680
call fcn.0049e370
add esp, 8
test eax, eax
je 0x49eb1b
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push 1
push eax
call edx
mov edi, dword [ebp - 0x40c]
xor ebx, ebx
lea eax, [ebp - 0x414]
push eax
push 0x536310
push 1
push ebx
push 0x5102d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp - 0x414]
js 0x49edb9
cmp eax, ebx
je 0x49edb9
mov ecx, dword [eax]
lea edx, [ebp - 0x420]
push edx
mov edx, dword [ebp - 0x408]
push 0x52d680
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x49edb9
cmp dword [ebp - 0x420], ebx
je 0x49edb9
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
lea edx, [ebp - 0x41c]
push edx
push 0x52d720
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x49ecd2
cmp dword [ebp - 0x41c], ebx
je 0x49ecd2
lea ecx, [ebp - 0x410]
push ecx
push 1
push ebx
mov dword [ebp - 0x40c], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x49edb9
cmp dword [ebp - 0x410], ebx
je 0x49edb9
cmp edi, 0xffffffff
je 0x49edb9
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [ebp - 0x40c]
push edx
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call esi
test eax, eax
je 0x49edb9
mov ecx, dword [ebp - 0x40c]
cmp ecx, ebx
jbe 0x49ec5f
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x424], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ebx, [ebp - 0x424]
push ebx
push ecx
lea ecx, [ebp - 0x404]
push ecx
push eax
call edx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40c]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push edi
call esi
test eax, eax
je 0x49edb9
mov ecx, dword [ebp - 0x40c]
cmp ecx, ebx
ja 0x49ec11
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x410]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ebx
push ecx
push eax
call edx
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
jl 0x49edbe
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
lea edx, [ebp - 0x418]
push edx
mov edx, dword [ebp - 0x410]
push 0x52d660
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x49edb9
cmp dword [ebp - 0x418], ebx
je 0x49edb9
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x49ed34
mov eax, dword [ebp - 0x408]
lea edx, [ebp - 0x40c]
push edx
mov dword [ebp - 0x40c], ebx
mov ecx, dword [eax]
push 0x52d710
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x49edb9
mov esi, dword [ebp - 0x40c]
cmp esi, ebx
je 0x49edb9
mov ecx, dword [ebp - 0x424]
mov edi, dword [esi]
push ebx
call fcn.0041a2d0
mov ecx, dword [edi + 0xc]
push eax
push esi
call ecx
mov esi, eax
mov eax, dword [ebp - 0x40c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp esi, ebx
jl 0x49edbe
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp - 0x428]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, ebx
jl 0x49edbe
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 0x49edbe
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
cmp eax, ebx
je 0x49ed88
xor eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x430]
cmp ecx, ebx
je 0x49ed9a
mov edx, dword [ebp - 0x420]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x42c]
cmp ecx, ebx
je 0x49ee14
pop edi
mov dword [ecx], eax
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
mov esi, 0x80004005
mov eax, dword [ebp - 0x408]
cmp eax, ebx
je 0x49edd0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
mov eax, dword [ebp - 0x410]
cmp eax, ebx
je 0x49ede2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0x420]
cmp ecx, ebx
je 0x49edfb
mov eax, dword [ebp - 0x414]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x418]
cmp ecx, ebx
je 0x49ee14
mov eax, dword [ebp - 0x414]
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 int.00401316
mov esp, ebp
pop ebp
ret