Function at 0x46e790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6a3e
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 4], 0
xor edi, edi
mov esi, dword [ebp + 8]
cmp dword [esi - 0xc], edi
jl 0x46ec85
mov eax, dword [eax + 0x18]
movzx ecx, word [esi]
cmp dword [eax + 0x10], edi
je 0x46eaa5
cmp ecx, 0x5c
jne 0x46eaa5
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x220], esi
test esi, esi
je 0x46ec8f
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x228], eax
cmp dword [eax + 4], edi
je 0x46e85b
push esi
lea ecx, [ebp - 0x224]
push ecx
mov ecx, eax
call fcn.00473150
mov ecx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
cmp eax, dword [ecx]
je 0x46e85b
movq xmm0, qword [eax + 0x14]
mov eax, dword [eax + 0x1c]
movq qword [ebp - 0x244], xmm0
jmp 0x46e85e
or eax, 0xffffffff
push esi
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x220]
cmp eax, 0xffffffff
je 0x46ec44
lea esi, [eax + 1]
mov dword [ebp - method.CxAutoArray_unsigned_char_.virtual_0], vtable.CxAutoArray_unsigned_char_.0
push esi
call fcn.004b44b4
push esi
push 0
push eax
mov dword [ebp - 0x234], eax
call fcn.004b69d0
add esp, 0x10
mov dword [ebp - 0x230], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
test eax, eax
jne 0x46e8df
xor esi, esi
mov dword [ebp - 0x224], esi
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x21c]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x10], 0
jne 0x46e8f8
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call eax
or edi, 0xffffffff
jmp 0x46ea4f
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x224], esi
test esi, esi
je 0x46ec99
jmp 0x46e8bc
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x21c], eax
cmp dword [eax + 4], 0
je 0x46ea88
push esi
lea ecx, [ebp - 0x228]
push ecx
mov ecx, eax
call fcn.00473150
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx]
je 0x46ea88
mov ecx, dword [edi + 0x18]
movq xmm0, qword [eax + 0x14]
mov eax, dword [eax + 0x1c]
movq qword [ebp - 0x244], xmm0
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], edx
test edx, edx
je 0x46e9d3
mov edi, dword [ebp - 0x244]
lea eax, [edi + 0x1e]
cmp eax, dword [ecx + 0xc]
jg 0x46e9d3
movups xmm0, xmmword [edi + edx]
mov eax, dword [edi + edx + 0x18]
mov dword [ebp - 0x24c], eax
mov ax, word [edi + edx + 0x1c]
movups xmmword [ebp - 0x264], xmm0
movzx ecx, ax
movq xmm0, qword [edi + edx + 0x10]
mov edx, dword [ebp - 0x220]
mov edi, edx
cmp dword [ebp - 0x21c], edx
movzx eax, word [ebp - 0x24a]
cmovl edi, dword [ebp - 0x21c]
add eax, 0x1e
add ecx, dword [ebp - 0x244]
add eax, ecx
movq qword [ebp - 0x254], xmm0
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x21c], eax
test edx, edx
js 0x46ea1b
cmp edx, edi
jge 0x46ea1b
or edi, 0xffffffff
jmp 0x46ea43
movzx ecx, word [ebp - 0x248]
movzx eax, word [ebp - 0x24a]
add ecx, 0x1e
mov edx, dword [ebp - 0x220]
add eax, ecx
cmp dword [ebp - 0x21c], edx
mov edi, edx
mov ecx, dword [ebp - 0x228]
cmovl edi, dword [ebp - 0x21c]
add eax, dword [ebp - 0x244]
cmp dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], eax
jne 0x46e9c6
or edi, 0xffffffff
jmp 0x46ea43
add eax, edi
cmp eax, dword [ecx + 0xc]
jle 0x46ea27
or edi, 0xffffffff
jmp 0x46ea43
mov eax, dword [ebp - 0x21c]
add eax, dword [ebp - 0x224]
push edi
push eax
push dword [ebp - 0x234]
call fcn.004b63f0
add esp, 0xc
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call eax
test edi, edi
je 0x46ea90
mov eax, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
mov ecx, dword [eax + 4]
cmp ecx, esi
je 0x46ec44
test ecx, ecx
je 0x46ea79
push ecx
call fcn.004b44af
mov eax, dword [ebp - 0x22c]
add esp, 4
mov dword [eax + 4], esi
mov dword [eax + 8], 0
jmp 0x46ec44
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call eax
push dword [ebp - 0x234]
call fcn.004b44af
add esp, 4
xor edi, edi
jmp 0x46ec44
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b69d0
add esp, 0xc
lea ecx, [ebp - 0x218]
cmp word [esi], 0x5c
mov edx, 0x104
jne 0x46eb31
mov eax, dword [ebp - 0x21c]
mov esi, ecx
mov eax, dword [eax + 0x10]
sub eax, esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x224], eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x46eb1c
mov eax, dword [ebp - 0x224]
movzx eax, word [ecx + eax]
mov edi, eax
mov dword [ebp - 0x228], edi
mov edi, 0
test ax, ax
je 0x46eb15
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x46eae2
jmp 0x46eb19
test edx, edx
jne 0x46eb1c
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 0x46eb79
lea eax, [ebp - 0x218]
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x46eb74
movzx eax, word [esi + ecx]
mov edi, eax
mov dword [ebp - 0x224], edi
mov edi, 0
test ax, ax
je 0x46eb6d
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x46eb40
jmp 0x46eb71
test edx, edx
jne 0x46eb74
sub ecx, 2
xor eax, eax
mov word [ecx], ax
push 0x636a50
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004ca095
add esp, 0xc
test eax, eax
jne 0x46ec44
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x46ec44
push 2
push 0
push eax
call fcn.004ca468
push dword [ebp - 0x220]
call fcn.004cab8c
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.004b44b4
push esi
push 0
push eax
mov dword [ebp - 0x21c], eax
call fcn.004b69d0
push 0
push 0
push dword [ebp - 0x220]
call fcn.004ca468
push dword [ebp - 0x220]
push edi
push 1
push dword [ebp - 0x21c]
call fcn.004cad95
push dword [ebp - 0x220]
call fcn.004caf74
mov esi, dword [ebp - 0x22c]
add esp, 0x40
mov eax, dword [ebp - 0x21c]
mov ecx, dword [esi + 4]
cmp ecx, eax
je 0x46ec44
test ecx, ecx
je 0x46ec3a
push ecx
call fcn.004b44af
mov eax, dword [ebp - 0x21c]
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46ec66
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00402a80
push 0x8007000e
call fcn.00402a80
push 0x8007000e
call fcn.00402a80
int3