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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp edi, 0x2700
mov dword [ebp - 0xc], esi
je 0x4538b1
cmp edi, 0xffffffff
je 0x4538b1
lea eax, [ebp - 0x574]
lea ecx, [esi + 0xaac]
push eax
push edi
call fcn.004490d5
cmp eax, 0xffffffff
jne 0x4538b8
xor eax, eax
jmp 0x453d3b
and byte [ebp - 0x574], 0
push ebx
lea ecx, [esi + 0xaac]
push edi
call fcn.004490ea
mov dword [ebp - 4], eax
mov ebx, 0x104
lea eax, [ebp - 0x164]
push ebx
push eax
mov ecx, esi
call fcn.004540cb
lea edi, [ebp - 0x574]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x164]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov ecx, edx
and ecx, 3
cmp eax, 3
rep movsb byte es:[edi], byte [esi]
je 0x45393e
cmp eax, 7
je 0x45393e
cmp eax, 4
je 0x453931
cmp eax, 9
je 0x453931
lea edx, [ebp - 0x164]
mov edi, 0x40a0a0
jmp 0x453949
lea edx, [ebp - 0x164]
mov edi, 0x410e20
jmp 0x453949
lea edx, [ebp - 0x164]
mov edi, 0x40e4fc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xa0
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push dword [0x534a50]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_LoadMenuA]
push 0
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
mov esi, 0x400
push esi
push 0
push eax
mov dword [ebp - 8], eax
call edi
push esi
push 0
push dword [ebp - 8]
call edi
push esi
push 1
push dword [ebp - 8]
call edi
cmp dword [ebp + 8], 0x2700
je 0x4539be
cmp dword [ebp + 8], 0xffffffff
jne 0x4539ce
push 0x401
push 1
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x40]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x470]
mov dword [ebp - 0x40], 0x30
push eax
push 0x9b
push dword [0x534a50]
call esi
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x470]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x470]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
push dword [ebp - 8]
mov dword [ebp - 0x3c], 0x43
not ecx
dec ecx
mov dword [ebp - 0x30], GetSystemDefaultLCID
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
push 0
push ecx
push 1
push eax
push dword [ebp - 8]
call fcn.00432d31
mov al, byte [0x45fc38]
add esp, 0x1c
mov byte [ebp - 0x268], al
xor eax, eax
push 0x40
lea edi, [ebp - 0x267]
pop ecx
cmp dword [ebp - 4], 3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0xc41
je 0x453a7b
cmp dword [ebp - 4], 4
je 0x453a7b
cmp dword [ebp - 4], 2
jne 0x453a80
mov eax, 0xc40
lea ecx, [ebp - 0x268]
push ebx
push ecx
push eax
push dword [0x534a50]
call esi
lea eax, [ebp - 0x268]
lea edi, [ebp - 0x268]
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x3c], 0x40
repne scasb al, byte es:[edi]
lea eax, [ebp - 0x40]
push eax
push 0
not ecx
push 0x80a7
dec ecx
push dword [ebp - 8]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
lea esi, [eax + 0xaac]
mov ecx, esi
call fcn.0045cc43
mov edi, dword [ebp - 0xc]
push dword [ebp - 8]
lea ecx, [edi + 0x948]
call fcn.00432be0
push 0
push dword [edi + 0xab0]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x100
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
sub eax, 0x8021
je 0x453cf8
sub eax, 0x4f
je 0x453c7c
sub eax, 0x37
je 0x453bd3
sub eax, 0x16
jne 0x453d2e
cmp dword [ebp - 4], 4
je 0x453b8c
cmp dword [ebp - 4], 3
je 0x453b8c
lea eax, [ebp - 0x164]
push eax
push 0x72
call fcn.00424eff
pop ecx
push eax
lea eax, [ebp - 0x36c]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x36c]
push 0x21
push 0x40a37c
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x453bba
lea eax, [ebp - 0x164]
push 3
push eax
call fcn.00425967
pop ecx
pop ecx
jmp 0x453bba
push 0x21
push 0x40a37c
push 0xbf
call fcn.00424eff
pop ecx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x453bba
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
call fcn.00453d41
push dword [edi + 0xab0]
mov ecx, edi
push 0x3e9
jmp 0x453cf1
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x164]
mov dword [ebp - 0x60], 0x20
push eax
mov dword [ebp - 0x5c], 1
call fcn.004593cf
test eax, eax
pop ecx
je 0x453c23
cmp dword [ebp - 4], 8
jne 0x453c07
push 2
pop edi
jmp 0x453c15
xor eax, eax
cmp dword [ebp - 4], 7
setne al
add eax, 3
mov edi, eax
lea eax, [ebp - 0x164]
push eax
call fcn.00459369
jmp 0x453c4b
cmp dword [ebp - 4], 2
jne 0x453c2e
push 8
pop edi
jmp 0x453c3f
xor eax, eax
cmp dword [ebp - 4], 3
setne al
dec eax
and al, 0xfe
add eax, 9
mov edi, eax
lea eax, [ebp - 0x164]
push eax
call fcn.00459322
pop ecx
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
push dword [ebp + 8]
mov dword [ebp - 0x54], edi
call fcn.004490c0
push 0
push 0
push 3
mov ecx, 0x497338
call fcn.0041c5b3
mov ecx, 0x4989c8
call fcn.004545b8
jmp 0x453d2e
lea eax, [ebp - 0x164]
push ebx
push eax
call fcn.0044817b
pop ecx
lea eax, [ebp - 0x36c]
pop ecx
push eax
lea eax, [ebp - 0x164]
push eax
push 0x9c
call fcn.00424eff
pop ecx
push eax
push dword [edi + 4]
call fcn.00427069
add esp, 0x10
test eax, eax
je 0x453d2e
lea edi, [ebp - 0x36c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4754a8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.00453d41
push dword [esi + 0xab0]
mov ecx, esi
push 0x3e9
call fcn.0045412b
jmp 0x453d2e
cmp dword [ebp - 4], 4
je 0x453d04
cmp dword [ebp - 4], 3
jne 0x453d13
lea eax, [ebp - 0x164]
push ebx
push eax
mov ecx, edi
call fcn.004540cb
push 0xa
push 0
lea eax, [ebp - 0x164]
push 0
push eax
push 0x40a7e0
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x10]
call fcn.00432ca1
pop ecx
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret 0xc