Function at 0x45210a
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 0x452149
cmp edi, 0xffffffff
je 0x452149
lea eax, [ebp - 0x574]
lea ecx, [esi + 0xaac]
push eax
push edi
call fcn.00447ee5
cmp eax, 0xffffffff
jne 0x452150
xor eax, eax
jmp 0x4525d3
and byte [ebp - 0x574], 0
push ebx
lea ecx, [esi + 0xaac]
push edi
call fcn.00447efa
mov dword [ebp - 4], eax
mov ebx, 0x104
lea eax, [ebp - 0x164]
push ebx
push eax
mov ecx, esi
call fcn.00452963
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 0x4521d6
cmp eax, 7
je 0x4521d6
cmp eax, 4
je 0x4521c9
cmp eax, 9
je 0x4521c9
lea edx, [ebp - 0x164]
mov edi, 0x40a0a0
jmp 0x4521e1
lea edx, [ebp - 0x164]
mov edi, 0x41065c
jmp 0x4521e1
lea edx, [ebp - 0x164]
mov edi, 0x40ddcc
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 [0x531f10]
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 0x452256
cmp dword [ebp + 8], 0xffffffff
jne 0x452266
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 [0x531f10]
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], WriteFile
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.004320d5
mov al, byte [0x45e298]
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 0x452313
cmp dword [ebp - 4], 4
je 0x452313
cmp dword [ebp - 4], 2
jne 0x452318
mov eax, 0xc40
lea ecx, [ebp - 0x268]
push ebx
push ecx
push eax
push dword [0x531f10]
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 GlobalFree
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.0045b2f3
mov edi, dword [ebp - 0xc]
push dword [ebp - 8]
lea ecx, [edi + 0x948]
call fcn.00431f84
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 0x452590
sub eax, 0x4f
je 0x452514
sub eax, 0x37
je 0x45246b
sub eax, 0x16
jne 0x4525c6
cmp dword [ebp - 4], 4
je 0x452424
cmp dword [ebp - 4], 3
je 0x452424
lea eax, [ebp - 0x164]
push eax
push 0x72
call fcn.0042487e
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 0x40a2d4
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x452452
lea eax, [ebp - 0x164]
push 3
push eax
call fcn.00425231
pop ecx
pop ecx
jmp 0x452452
push 0x21
push 0x40a2d4
push 0xbf
call fcn.0042487e
pop ecx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x452452
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
call fcn.004525d9
push dword [edi + 0xab0]
mov ecx, edi
push 0x3e9
jmp 0x452589
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.00457b3f
test eax, eax
pop ecx
je 0x4524bb
cmp dword [ebp - 4], 8
jne 0x45249f
push 2
pop edi
jmp 0x4524ad
xor eax, eax
cmp dword [ebp - 4], 7
setne al
add eax, 3
mov edi, eax
lea eax, [ebp - 0x164]
push eax
call fcn.00457ad9
jmp 0x4524e3
cmp dword [ebp - 4], 2
jne 0x4524c6
push 8
pop edi
jmp 0x4524d7
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.00457a92
pop ecx
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
push dword [ebp + 8]
mov dword [ebp - 0x54], edi
call fcn.00447ed0
push 0
push 0
push 3
mov ecx, 0x4947f8
call fcn.0041be82
mov ecx, 0x495e88
call fcn.00452d28
jmp 0x4525c6
lea eax, [ebp - 0x164]
push ebx
push eax
call fcn.00446f8b
pop ecx
lea eax, [ebp - 0x36c]
pop ecx
push eax
lea eax, [ebp - 0x164]
push eax
push 0x9c
call fcn.0042487e
pop ecx
push eax
push dword [edi + 4]
call fcn.004268f6
add esp, 0x10
test eax, eax
je 0x4525c6
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, 0x472978
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.004525d9
push dword [esi + 0xab0]
mov ecx, esi
push 0x3e9
call fcn.004529c3
jmp 0x4525c6
cmp dword [ebp - 4], 4
je 0x45259c
cmp dword [ebp - 4], 3
jne 0x4525ab
lea eax, [ebp - 0x164]
push ebx
push eax
mov ecx, edi
call fcn.00452963
push 0xa
push 0
lea eax, [ebp - 0x164]
push 0
push eax
push 0x40a814
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x10]
call fcn.00432045
pop ecx
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret 0xc