Function at 0x402080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5325a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x58e130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x70], eax
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x40], edi
mov eax, dword [eax*4 + 0x572800]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x5d], 0
call fcn.00401f10
mov esi, dword [ebp - 0x68]
mov edx, eax
mov dword [ebp - 0x5c], edx
test edx, edx
js 0x40239b
test esi, esi
je 0x40239b
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0x5d]
test eax, eax
push 0x5726d0
mov edx, 1
lea eax, [ebp - 0x40]
cmovne ecx, edx
push esi
push eax
mov dword [ebp - 0x14], ecx
call fcn.00518b40
add esp, 0xc
cmp byte [ebp - 0x14], 0
je 0x40213a
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test eax, eax
je 0x4021c8
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x4021d0
call fcn.00402fd9
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x402161
push 0x80004005
call fcn.00402a90
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push str.ERROR_:___s_not_found_
push eax
call fcn.00402800
mov esi, dword [ebp - 0x14]
add esp, 0xc
push 0x10
push str.CxProper
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
add esi, 0xfffffff0
mov dword [ebp - 0x5c], 0x80070005
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402392
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
mov esi, dword [ebp - 0x5c]
jmp 0x40239d
push edi
call fcn.005189c2
add esp, 4
mov esi, eax
push 2
push 0
push edi
call fcn.00518abd
add esp, 0xc
push edi
call fcn.005189c2
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push esi
push edi
call fcn.00518abd
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
call fcn.00402c17
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x40221f
mov esi, 0x8007000e
jmp 0x40239d
push dword [ebp - 0x40]
push esi
push 1
push edi
call fcn.00518e14
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
cmp eax, esi
mov edx, 0x80070005
mov eax, dword [ebp - 0x14]
lea esi, [edi + 0x30]
cmovne ecx, edx
xor edi, edi
mov dword [ebp - 0x5c], ecx
cmp dword [eax + 0x24], edi
jbe 0x40227c
jmp 0x402250
mov ecx, dword [ebp - 0x64]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402256
sub ecx, edx
push ecx
push esi
push dword [ebp - 0x64]
call fcn.0051902b
add esp, 0xc
test eax, eax
je 0x40227c
mov eax, dword [ebp - 0x14]
inc edi
add esi, 0x10
cmp edi, dword [eax + 0x24]
jb 0x402250
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 0x24]
add eax, 3
shl eax, 4
add eax, edi
cmp esi, eax
jne 0x402298
mov esi, 0x80070005
jmp 0x40239d
mov eax, dword [esi + 0xc]
lea esi, [edi + 4]
add esi, eax
mov eax, dword [eax + edi]
add eax, 0xfffffffc
add eax, esi
mov dword [ebp - 0x64], eax
cmp esi, eax
je 0x40238d
mov edi, dword [sym.imp.ole32.dll_PropVariantClear]
mov edx, 0x13
lea ecx, [edx + 0x2e]
mov eax, dword [esi + 4]
dec eax
je 0x4022fb
dec eax
jne 0x40237f
mov eax, dword [esi + 0x1c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x28], dx
lea eax, [esi + 8]
mov edx, dword [ebp - 0x6c]
push eax
push 1
push dword [ebp - 0x70]
mov ecx, dword [edx]
push edx
call dword [ecx + 0x2c]
lea eax, [ebp - 0x28]
jmp 0x402374
mov edi, dword [esi]
mov eax, dword [ebp - 0x74]
sub edi, 0xc
cmp eax, 1
je 0x402317
cmp eax, 2
je 0x402317
movdqu xmm0, xmmword [0x5727c0]
jmp 0x40231f
movdqu xmm0, xmmword [0x5727d0]
movdqu xmmword [ebp - 0x3c], xmm0
mov eax, dword [esi + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
movdqu xmmword [ebp - 0x58], xmm0
push edi
mov word [ebp - 0x58], cx
mov dword [ebp - 0x50], edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x40236b
push edi
lea ecx, [esi + 0xc]
push ecx
push eax
call fcn.0051d990
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x58]
add esp, 0xc
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x3c]
push edx
push 1
push dword [ebp - 0x70]
push ecx
call dword [eax + 0x2c]
mov edi, dword [sym.imp.ole32.dll_PropVariantClear]
lea eax, [ebp - 0x58]
push eax
call edi
mov edx, 0x13
lea ecx, [edx + 0x2e]
add esi, dword [esi]
cmp esi, dword [ebp - 0x64]
jne 0x4022c1
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x5c]
jmp 0x40239d
xor edi, edi
mov esi, 0x80070005
jmp 0x40239d
mov esi, eax
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4023ad
push eax
call fcn.00518f2c
add esp, 4
test edi, edi
je 0x4023ba
push edi
call fcn.00402c20
add esp, 4
push dword [ebp - 0x68]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
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.00518623
mov esp, ebp
pop ebp
ret