Function at 0x402590
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547b38
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x5ac1b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [sym.imp.SetupXML.dll_public:_void___thiscall_CXMLFileManagerInterface::constructor_void_]
lea ecx, [ebp - 0x2c]
call esi
mov dword [ebp - 0x2c], vtable.CUtlX.0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call dword [sym.imp.SetupXML.dll_public:_long_int___thiscall_CXMLFileManagerInterface::Initialize_void_]
lea ecx, [ebp - 0x48]
call esi
mov dword [ebp - 0x48], vtable.CUtlX.0
push 0x58bfbc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00404ba0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
push 4
mov byte [ebp - 0x30], 0
call dword [sym.imp.SetupXML.dll_public:_void___thiscall_CXMLFileManagerInterface::SetFileIndex_enum_XMLFILENAMES_]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.004054a0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x48]
call fcn.00405160
mov byte [ebp - 4], 4
mov ecx, 0x58bfbc
mov eax, dword [ebp - 0x10]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40265b
test dx, dx
je 0x402657
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40265b
add eax, 4
add ecx, 4
test dx, dx
jne 0x402635
xor eax, eax
jmp 0x402660
sbb eax, eax
or eax, 1
test eax, eax
setne al
or edi, 0xffffffff
test al, al
je 0x4026de
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x48]
call fcn.00405360
mov esi, eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x48]
call fcn.004052a0
push 1
push dword [esi]
push dword [eax]
push dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4026be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4026de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.SetupXML.dll_public:_void___thiscall_CXMLFileManagerInterface::UnInitialize_void_]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x48]
call fcn.004055d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x18]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40271d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40273d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40275b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov esi, dword [sym.imp.SetupXML.dll_public_virtual:_void___thiscall_CXMLFileManagerInterface::destructor_void_]
mov dword [ebp - 0x48], vtable.CUtlX.0
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], vtable.CUtlX.0
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret