Function at 0x505030
Capabilities:
Delete file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x505038
push ebx
push esi
push edi
mov ebx, dword [0x51fe6c]
xor eax, eax
push ebp
push 0x505404
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.00487cbc
mov eax, dword [ebp - 0x20]
mov edx, 0x505420
call fcn.004143cc
test eax, eax
jne 0x50507a
mov byte [ebp - 0x11], 1
jmp 0x5050a0
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.00487cbc
mov eax, dword [ebp - 0x24]
mov edx, 0x505438
call fcn.004143cc
test eax, eax
jne 0x5053dc
mov byte [ebp - 0x11], 0
mov eax, dword [ebx]
mov edx, 0x505450
call fcn.004840a8
push 5
mov eax, dword [ebx]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
call fcn.004e9bd0
push 0x50545c
push 0
push 0
call fcn.00409458
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebp - 0x18], 0
je 0x505108
mov eax, dword [ebx]
call fcn.00484528
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x5050e8
push 5
mov eax, dword [ebx]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
push ebp
push 0x5053d5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00487cbc
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 4]
mov edx, 0x505498
call fcn.00486da0
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00487cbc
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 8]
mov edx, 0x5054b0
call fcn.00486da0
mov eax, dword [ebp - 8]
call fcn.00487564
test al, al
je 0x50536c
mov cl, 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048af4c
mov eax, dword [0x51fdc0]
test byte [eax + 0x4c], 1
setne al
call fcn.0048b528
mov edx, dword [0x51fe7c]
mov edx, dword [edx + 0x274]
mov eax, dword [ebx]
call fcn.004840a8
xor eax, eax
push ebp
push 0x505365
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004e6f18
push 2
push 0
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x489a00]
call fcn.00489cc8
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x50534b
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x505325
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00489f78
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x5051ef
sub esi, 4
mov esi, dword [esi]
cmp esi, 4
jle 0x505200
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5b
sete bl
jmp 0x505202
xor ebx, ebx
test bl, bl
je 0x505325
mov eax, dword [ebp - 0xc]
cmp word [eax + 6], 0x5d
jne 0x505325
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x7fffffff
mov edx, 5
mov eax, dword [ebp - 0xc]
call fcn.00406bec
mov eax, dword [ebp - 0xc]
cmp word [eax + 4], 0x71
je 0x50524c
cmp byte [ebp - 0x11], 0
je 0x505248
mov eax, dword [0x51fcdc]
cmp byte [eax], 0
je 0x50524c
xor eax, eax
jmp 0x50524e
mov al, 1
mov byte [ebp - 0x12], al
xor eax, eax
push ebp
push 0x5052c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 2]
sub ax, 0x53
je 0x505291
dec ax
je 0x5052ae
sub ax, 0x1f
je 0x50527e
dec ax
je 0x5052a4
jmp 0x5052b8
movzx eax, byte [ebp - 0x12]
push eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
xor eax, eax
call fcn.004ba764
jmp 0x5052b8
movzx eax, byte [ebp - 0x12]
push eax
mov ecx, dword [ebp - 0x10]
mov dl, 1
xor eax, eax
call fcn.004ba764
jmp 0x5052b8
mov eax, dword [ebp - 0x10]
call fcn.005043d4
jmp 0x5052b8
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.004ba954
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x505325
mov eax, dword [ebp - 0x1c]
call fcn.00489f68
test al, al
je 0x5051d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505352
mov eax, dword [ebp - 0x1c]
call fcn.00404098
ret
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
push ebp
push 0x5053a5
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00504f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5053af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5053dc
cmp dword [ebp - 0x18], 0
je 0x5053d4
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50540b
lea eax, [ebp - 0x38]
mov edx, 7
call fcn.00406440
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406440
ret