Function at 0x4e37a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3819
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x220], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0
xor edi, edi
mov esi, dword [ebp + 8]
cmp dword [esi - 0xc], edi
jge 0x4e37fa
push 0x80070057
call fcn.0040c390
cmp word [esi], 0x5c
mov ecx, 1
mov eax, dword [ebx + 0x18]
cmove edi, ecx
cmp dword [eax + 0x10], 0
je 0x4e3989
test edi, edi
je 0x4e3989
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x234], esi
test esi, esi
jne 0x4e3838
push 0x8007000e
call fcn.0040c390
mov byte [ebp - 4], 1
mov edi, dword [ebx + 0x1c]
cmp dword [edi + 4], 0
je 0x4e3870
push esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.004e5270
mov eax, dword [ebp - 0x21c]
cmp eax, dword [edi]
je 0x4e3870
movq xmm0, qword [eax + 0x14]
mov edi, dword [eax + 0x1c]
movq qword [ebp - 0x230], xmm0
jmp 0x4e3873
or edi, 0xffffffff
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, 0xffffffff
je 0x4e38f0
lea esi, [edi + 1]
mov dword [ebp - 0x230], 0x5be2fc
push esi
call fcn.00550341
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x22c], ebx
call fcn.00559380
add esp, 0x10
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4e3936
xor esi, esi
mov dword [ebp - 0x21c], esi
mov ecx, dword [ebp - 0x220]
push edi
push ebx
push esi
add ecx, 0x14
mov byte [ebp - 4], 3
call fcn.004e48a0
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jne 0x4e3957
lea ecx, [ebp - 0x230]
call fcn.0043aa50
xor edi, edi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e3916
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
jne 0x4e38c3
push 0x8007000e
call fcn.0040c390
mov ecx, dword [ebp - 0x224]
push 0
push ebx
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
call fcn.004e3b00
lea ecx, [ebp - 0x230]
call fcn.0043aa50
jmp 0x4e38f2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00559380
add esp, 0xc
lea ecx, [ebp - 0x218]
mov edx, 0x104
mov eax, ecx
test edi, edi
je 0x4e39ef
mov edi, dword [ebx + 0x10]
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4e39d3
movzx eax, word [edi + ecx]
test ax, ax
je 0x4e39d3
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x4e39b5
jmp 0x4e39d7
test edx, edx
jne 0x4e39da
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x4e3a1b
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4e3a0f
movzx eax, word [esi + ecx]
test ax, ax
je 0x4e3a0f
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x4e39f1
jmp 0x4e3a13
test edx, edx
jne 0x4e3a16
sub ecx, 2
xor eax, eax
mov word [ecx], ax
push 0x5c858c
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00557142
add esp, 0xc
test eax, eax
jne 0x4e38f0
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4e38f0
push 2
push 0
push eax
call fcn.005572e0
push dword [ebp - 0x21c]
call fcn.005576f3
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.00550341
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x220], ebx
call fcn.00559380
push 0
push 0
push dword [ebp - 0x21c]
call fcn.005572e0
push dword [ebp - 0x21c]
push edi
push 1
push ebx
call fcn.00557924
push dword [ebp - 0x21c]
call fcn.00557a3c
mov ebx, dword [ebp - 0x224]
add esp, 0x40
mov esi, dword [ebp - 0x220]
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x4e38f2
test eax, eax
je 0x4e3ae5
push eax
call fcn.005527f2
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 4], esi
mov dword [ebx + 8], 0
jmp 0x4e38f2