Function at 0x404c90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44944b
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e764]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
push 0x103
xor ebp, ebp
lea eax, [esp + 0x29]
mov edi, ecx
push ebp
push eax
mov dword [esp + 0x28], edi
mov byte [esp + 0x30], 0
call fcn.004338b0
mov ecx, dword [edi + 0xfc]
add esp, 0xc
push ebp
push ebp
push 0x1004
xor esi, esi
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ebp
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x404eb5
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 4
push ebp
lea edx, [esp + 0x1c]
push edx
lea ecx, [edi + 0xdc]
call fcn.00418211
push 0x104
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x140], 0
call fcn.004338b0
mov eax, dword [esp + 0x20]
mov esi, dword [eax - 0xc]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x404d66
mov ecx, esi
push ecx
lea ecx, [esp + 0x18]
call fcn.00404520
mov eax, dword [esp + 0x14]
push esi
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.004347f0
lea eax, [esp + 0x30]
push str.CrossEX
push eax
call fcn.00411fd0
add esp, 0x14
test eax, eax
je 0x404e65
lea ecx, [esp + 0x24]
push ecx
call ebx
lea edi, [esp + 0x24]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404d98
mov ecx, 6
mov esi, 0x44d798
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [esp + 0x24]
push edx
movsb byte es:[edi], byte [esi]
call fcn.00401ba0
add esp, 4
test eax, eax
jne 0x404e12
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x24]
push ecx
call ebx
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404dd3
mov edx, dword [str.UnInstallCrossEX.exe]
mov ecx, dword [0x44d784]
mov dword [eax], edx
mov edx, dword [0x44d788]
mov dword [eax + 4], ecx
mov ecx, dword [0x44d78c]
mov dword [eax + 8], edx
mov edx, dword [0x44d790]
mov dword [eax + 0xc], ecx
mov cx, word [0x44d794]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
lea edx, [esp + 0x24]
push edx
call fcn.00401ba0
add esp, 4
test eax, eax
je 0x404e61
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push 0x44d77c
push eax
call fcn.00402060
inc dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x24]
push edx
call ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00411450
add esp, 8
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x134], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0xfc]
push 0
push 0
push 0x1004
push ecx
inc ebp
call dword [sym.imp.USER32.dll_SendMessageA]
cmp ebp, eax
jl 0x404d17
mov eax, dword [esp + 0x18]
jmp 0x404eb7
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00432ccc
add esp, 0x124
ret