Function at 0x422e20
Capabilities:
Delete file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4be788
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4f36a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
cmp dword [edi + 0x24], 0
je 0x422e6f
push 0x4eb2dc
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x80800000
call fcn.004a1a26
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x6f8], 0
je 0x423033
cmp dword [0x4fd600], 0
je 0x422ec5
push str.Local_sgim_evt_reinstall
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [0x4fd600]
push 0
push 1
push 0x800c
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_PostMessageW]
test esi, esi
je 0x422ec5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x24], 0
je 0x422ee2
push 0x4eb2dc
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x80800000
call fcn.004a1a26
mov eax, dword [edi + 4]
lea esi, [eax + 0x6b4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x10], 0
je 0x42300f
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov esi, dword [edi + 4]
call fcn.0040c580
mov ebx, 0x4dbddc
lea esi, [esp + 0x14]
call fcn.004035f0
mov dword [esp + 0x28], 0
call fcn.0040e6c0
mov ebx, eax
lea esi, [esp + 0x10]
call fcn.004035f0
mov ecx, dword [ebp + 0xc]
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 8]
mov eax, esi
push eax
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov byte [esp + 0x40], 1
call fcn.0041ad20
test al, al
sete bl
call fcn.004035c0
lea esi, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004035c0
test bl, bl
je 0x422fb9
mov esi, dword [edi + 4]
call fcn.0040c5c0
xor ecx, ecx
call fcn.0040e620
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
push 0
push 0xf060
push 0x112
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x4eb2dc
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x80800000
call fcn.004a1a26
mov eax, dword [edi + 4]
test eax, eax
je 0x423003
cmp dword [eax + 4], 0
je 0x423003
fld dword [0x4e5c20]
push ecx
fstp dword [esp]
call fcn.0040c560
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x10]
push eax
lea edi, [esp + 0x18]
call fcn.00414140
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, edi
call fcn.004035c0
mov edi, dword [esp + 0x18]
mov esi, edi
call fcn.00422200
jmp 0x423257
mov eax, dword [0x4fd600]
test eax, eax
je 0x423257
push 0
push 2
push 0x800c
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
call fcn.004998fb
mov edx, dword [ebp + 0x18]
mov eax, 0x500838
mov ebx, 0x4f984c
mov dword [edx], 1
call fcn.00440420
cmp eax, 1
jne 0x4231bf
mov eax, dword [edi + 4]
push 0
push 0
add eax, 4
mov eax, dword [eax]
push 0x50a
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, edi
call fcn.00413360
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x7e8], 0
je 0x4231b4
cmp dword [ebp + 0x10], 0
je 0x423257
mov ebx, 0x4d6464
lea esi, [esp + 0x10]
call fcn.004035f0
lea esi, [esp + 0x14]
mov dword [esp + 0x28], 2
call fcn.004035f0
mov ecx, dword [ebp + 0xc]
push 0
push 5
lea edx, [esp + 0x18]
push edx
mov edx, dword [ebp + 8]
mov eax, esi
push eax
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov byte [esp + 0x40], 3
call fcn.0041ad20
test al, al
sete bl
call fcn.004035c0
lea esi, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.004035c0
test bl, bl
je 0x423251
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov eax, dword [edi + 4]
test eax, eax
je 0x423190
cmp dword [eax + 4], 0
je 0x423190
mov ecx, dword [eax + 0x94]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, 0x4dc814
lea esi, [esp + 0x14]
call fcn.004035f0
mov dword [esp + 0x28], 4
mov eax, esi
mov esi, dword [edi + 4]
call fcn.0040ba10
lea esi, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004035c0
mov esi, dword [edi + 4]
call fcn.0040b710
push str.quitevent
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [edi + 4]
mov esi, eax
call fcn.0040c600
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi]
mov eax, dword [edx + 4]
push esi
mov ecx, edi
call eax
mov ecx, dword [ebp + 8]
push 0x4dc978
call fcn.004032e0
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
jmp 0x423257
cmp dword [ebp + 0x10], 0
je 0x423257
mov ebx, 0x4d6464
lea esi, [esp + 0x10]
call fcn.004035f0
lea esi, [esp + 0x14]
mov dword [esp + 0x28], 5
call fcn.004035f0
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0
push 5
lea eax, [esp + 0x18]
push eax
mov ecx, esi
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push edi
mov byte [esp + 0x40], 6
call fcn.0041ad20
test al, al
sete bl
call fcn.004035c0
lea esi, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.004035c0
test bl, bl
je 0x423251
mov eax, dword [ebp + 0x14]
mov ecx, edi
push 0x4dc978
mov byte [eax], 1
call fcn.004032e0
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 0
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14