Function at 0x4cd7f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5827e9
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5c4104]
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 edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], edi
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp dword [esi - 0xc], 0
jge 0x4cd849
push 0x80070057
call fcn.004071e0
mov eax, dword [ebx + 0x18]
movzx ecx, word [esi]
cmp dword [eax + 0x10], 0
je 0x4cd9e7
cmp ecx, 0x5c
jne 0x4cd9e7
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x234], esi
test esi, esi
jne 0x4cd87f
push 0x8007000e
call fcn.004071e0
mov byte [ebp - 4], 1
mov edi, dword [ebx + 0x1c]
cmp dword [edi + 4], 0
je 0x4cd8b7
push esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.004d3480
mov eax, dword [ebp - 0x21c]
cmp eax, dword [edi]
je 0x4cd8b7
movq xmm0, qword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
movq qword [ebp - 0x230], xmm0
jmp 0x4cd8ba
or ebx, 0xffffffff
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp ebx, 0xffffffff
je 0x4cd93f
lea esi, [ebx + 1]
mov dword [ebp - method.CxAutoArray_unsigned_char_.virtual_0], vtable.CxAutoArray_unsigned_char_.0
push esi
call fcn.0051b749
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x22c], edi
call fcn.0051f290
add esp, 0x10
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4cd995
xor esi, esi
mov dword [ebp - 0x21c], esi
mov ecx, dword [ebp - 0x220]
push ebx
push edi
push esi
add ecx, 0x14
mov byte [ebp - 4], 3
call fcn.004d2b20
push esi
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
jne 0x4cd9b6
lea ecx, [ebp - 0x230]
call fcn.00452000
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdb5c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4cdb58
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4cdb58
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4cdb5c
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
jne 0x4cd90e
push 0x8007000e
call fcn.004071e0
push ecx
mov ecx, dword [ebp - 0x224]
push edi
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
call fcn.00481740
lea ecx, [ebp - 0x230]
call fcn.00452000
jmp 0x4cd941
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051f290
add esp, 0xc
lea ecx, [ebp - 0x218]
cmp word [esi], 0x5c
mov edx, 0x104
mov eax, ecx
jne 0x4cda56
mov edi, dword [ebx + 0x10]
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4cda33
movzx eax, word [edi + ecx]
test ax, ax
je 0x4cda33
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4cda15
lea eax, [ecx - 2]
test edx, edx
push esi
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [ebp - 0x224]
jmp 0x4cda8b
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4cda7e
movzx eax, word [esi + ecx]
test ax, ax
je 0x4cda7e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4cda60
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push 0x5a2f68
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0055295c
add esp, 0xc
test eax, eax
jne 0x4cd93f
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4cd93f
push 2
push 0
push eax
call fcn.00552daa
push dword [ebp - 0x21c]
call fcn.005533e0
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.0051b749
push esi
mov esi, eax
mov dword [ebp - 0x220], eax
push 0
push esi
call fcn.0051f290
push 0
push 0
push dword [ebp - 0x21c]
call fcn.00552daa
push dword [ebp - 0x21c]
push ebx
push 1
push esi
call fcn.005535fb
push dword [ebp - 0x21c]
call fcn.005537a2
mov eax, dword [edi + 4]
add esp, 0x40
cmp eax, esi
je 0x4cd941
test eax, eax
je 0x4cdb49
push eax
call fcn.0051b195
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 4], esi
mov dword [edi + 8], 0
jmp 0x4cd941
mov ecx, edx
call esi
mov eax, ebx
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.0051b15a
mov esp, ebp
pop ebp
ret 8