Function at 0x452e58
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 0x452e97
cmp edi, 0xffffffff
je 0x452e97
lea eax, [ebp - 0x574]
lea ecx, [esi + 0xaac]
push eax
push edi
call fcn.00448836
cmp eax, 0xffffffff
jne 0x452e9e
xor eax, eax
jmp 0x453321
and byte [ebp - 0x574], 0
push ebx
lea ecx, [esi + 0xaac]
push edi
call fcn.0044884b
mov dword [ebp - 4], eax
mov ebx, 0x104
lea eax, [ebp - 0x164]
push ebx
push eax
mov ecx, esi
call fcn.004536b1
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 0x452f24
cmp eax, 7
je 0x452f24
cmp eax, 4
je 0x452f17
cmp eax, 9
je 0x452f17
lea edx, [ebp - 0x164]
mov edi, 0x40a0a0
jmp 0x452f2f
lea edx, [ebp - 0x164]
mov edi, 0x410a34
jmp 0x452f2f
lea edx, [ebp - 0x164]
mov edi, 0x40e118
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 [0x532da0]
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 0x452fa4
cmp dword [ebp + 8], 0xffffffff
jne 0x452fb4
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 [0x532da0]
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], 0x8070
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.00432585
mov al, byte [0x45f128]
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 0x453061
cmp dword [ebp - 4], 4
je 0x453061
cmp dword [ebp - 4], 2
jne 0x453066
mov eax, 0xc40
lea ecx, [ebp - 0x268]
push ebx
push ecx
push eax
push dword [0x532da0]
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 CreateFileA
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.0045c143
mov edi, dword [ebp - 0xc]
push dword [ebp - 8]
lea ecx, [edi + 0x948]
call fcn.00432434
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 0x4532de
sub eax, 0x4f
je 0x453262
sub eax, 0x37
je 0x4531b9
sub eax, 0x16
jne 0x453314
cmp dword [ebp - 4], 4
je 0x453172
cmp dword [ebp - 4], 3
je 0x453172
lea eax, [ebp - 0x164]
push eax
push 0x72
call fcn.00424a93
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 0x4531a0
lea eax, [ebp - 0x164]
push 3
push eax
call fcn.004254fb
pop ecx
pop ecx
jmp 0x4531a0
push 0x21
push 0x40a37c
push 0xbf
call fcn.00424a93
pop ecx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x4531a0
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
call fcn.00453327
push dword [edi + 0xab0]
mov ecx, edi
push 0x3e9
jmp 0x4532d7
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.0045894e
test eax, eax
pop ecx
je 0x453209
cmp dword [ebp - 4], 8
jne 0x4531ed
push 2
pop edi
jmp 0x4531fb
xor eax, eax
cmp dword [ebp - 4], 7
setne al
add eax, 3
mov edi, eax
lea eax, [ebp - 0x164]
push eax
call fcn.004588e8
jmp 0x453231
cmp dword [ebp - 4], 2
jne 0x453214
push 8
pop edi
jmp 0x453225
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.004588a1
pop ecx
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
push dword [ebp + 8]
mov dword [ebp - 0x54], edi
call fcn.00448821
push 0
push 0
push 3
mov ecx, 0x495688
call fcn.0041c22e
mov ecx, 0x496d18
call fcn.00453b37
jmp 0x453314
lea eax, [ebp - 0x164]
push ebx
push eax
call fcn.004478dc
pop ecx
lea eax, [ebp - 0x36c]
pop ecx
push eax
lea eax, [ebp - 0x164]
push eax
push 0x9c
call fcn.00424a93
pop ecx
push eax
push dword [edi + 4]
call fcn.00426bfd
add esp, 0x10
test eax, eax
je 0x453314
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, 0x473808
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.00453327
push dword [esi + 0xab0]
mov ecx, esi
push 0x3e9
call fcn.00453711
jmp 0x453314
cmp dword [ebp - 4], 4
je 0x4532ea
cmp dword [ebp - 4], 3
jne 0x4532f9
lea eax, [ebp - 0x164]
push ebx
push eax
mov ecx, edi
call fcn.004536b1
push 0xa
push 0
lea eax, [ebp - 0x164]
push 0
push eax
push 0x40a890
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x10]
call fcn.004324f5
pop ecx
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret 0xc