Function at 0x50673c
Capabilities:
Delete file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x506744
push ebx
push esi
push edi
mov ebx, dword [0x537e6c]
xor eax, eax
push ebp
push 0x506b10
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.0048a0e4
mov eax, dword [ebp - 0x20]
mov edx, 0x506b2c
call fcn.00416f98
test eax, eax
jne 0x506786
mov byte [ebp - 0x11], 1
jmp 0x5067ac
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.0048a0e4
mov eax, dword [ebp - 0x24]
mov edx, 0x506b44
call fcn.00416f98
test eax, eax
jne 0x506ae8
mov byte [ebp - 0x11], 0
mov eax, dword [ebx]
mov edx, 0x506b5c
call fcn.00486d70
push 5
mov eax, dword [ebx]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
call fcn.004eb71c
push 0x506b68
push 0
push 0
call fcn.00409490
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 0x506814
mov eax, dword [ebx]
call fcn.004871f0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x5067f4
push 5
mov eax, dword [ebx]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
push ebp
push 0x506ae1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.0048a0e4
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 4]
mov edx, 0x506ba4
call fcn.004891c8
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.0048a0e4
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 8]
mov edx, 0x506bbc
call fcn.004891c8
mov eax, dword [ebp - 8]
call fcn.0048998c
test al, al
je 0x506a78
mov cl, 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048d5ac
mov eax, dword [0x537dc0]
test byte [eax + 0x4c], 1
setne al
call fcn.004924cc
mov edx, dword [0x537e7c]
mov edx, dword [edx + 0x274]
mov eax, dword [ebx]
call fcn.00486d70
xor eax, eax
push ebp
push 0x506a71
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004e8a64
push 2
push 0
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x48c060]
call fcn.0048c328
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x506a57
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x506a31
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0048c5d8
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x5068fb
sub esi, 4
mov esi, dword [esi]
cmp esi, 4
jle 0x50690c
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5b
sete bl
jmp 0x50690e
xor ebx, ebx
test bl, bl
je 0x506a31
mov eax, dword [ebp - 0xc]
cmp word [eax + 6], 0x5d
jne 0x506a31
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 0x506958
cmp byte [ebp - 0x11], 0
je 0x506954
mov eax, dword [0x537cdc]
cmp byte [eax], 0
je 0x506958
xor eax, eax
jmp 0x50695a
mov al, 1
mov byte [ebp - 0x12], al
xor eax, eax
push ebp
push 0x5069ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 2]
sub ax, 0x53
je 0x50699d
dec ax
je 0x5069ba
sub ax, 0x1f
je 0x50698a
dec ax
je 0x5069b0
jmp 0x5069c4
movzx eax, byte [ebp - 0x12]
push eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
xor eax, eax
call fcn.004bc2b0
jmp 0x5069c4
movzx eax, byte [ebp - 0x12]
push eax
mov ecx, dword [ebp - 0x10]
mov dl, 1
xor eax, eax
call fcn.004bc2b0
jmp 0x5069c4
mov eax, dword [ebp - 0x10]
call fcn.00505f20
jmp 0x5069c4
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.004bc4a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x506a31
mov eax, dword [ebp - 0x1c]
call fcn.0048c5c8
test al, al
je 0x5068e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506a5e
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 0x506ab1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0050669c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x506abb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506ae8
cmp dword [ebp - 0x18], 0
je 0x506ae0
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 0x506b17
lea eax, [ebp - 0x38]
mov edx, 7
call fcn.00406440
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406440
ret