Function at 0x40d8b0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d543
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x62c], esi
cmp eax, 4
jne 0x40d8f8
call fcn.0040c9b0
jmp 0x40def9
cmp eax, 3
je 0x40d935
push 0
push 0
push 4
push ecx
mov eax, esp
mov dword [ebp - 0x628], esp
push eax
lea ecx, [esi + 0x154]
call fcn.00403b40
mov ecx, dword [esi + 0xd740]
push ecx
mov ecx, esi
call fcn.00408c40
cmp eax, 7
jne 0x40d935
mov eax, 0x642
jmp 0x40def9
lea edx, [ebp - 0x624]
lea edi, [esi + 0x154]
xor ebx, ebx
push edx
mov ecx, edi
mov dword [ebp - 0x624], ebx
call fcn.004029c0
mov dword [ebp - 0x628], eax
cmp eax, ebx
jbe 0x40dc92
mov dword [ebp - 0x630], ebx
jmp 0x40d970
lea eax, [ebp - 0x634]
push eax
sub esp, 0x114
mov edi, esp
mov ecx, 0x45
add esi, 0x30
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x624]
mov edi, dword [ebp - 0x62c]
lea edx, [ebx + ecx]
push edx
mov ecx, edi
mov dword [ebp - 0x634], 0
call fcn.0040c270
xor esi, esi
cmp eax, esi
je 0x40dc59
mov eax, dword [ebp - 0x624]
mov ecx, 1
cmp dword [ebx + eax + 0x208], ecx
jne 0x40dd6c
cmp dword [ebx + eax + 0xc3c], ecx
jne 0x40da52
lea eax, [ebp - 0x634]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x638], esp
push str._f__SETUP_CloseApp__
mov dword [ebp - 0x634], esi
call fcn.00404f70
mov ecx, dword [ebp - 0x624]
push ecx
lea edx, [ebx + ecx]
mov ecx, esp
mov dword [ebp - 0x63c], esp
push edx
mov dword [ebp - 4], esi
call fcn.00404f70
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00407830
cmp eax, esi
je 0x40dd0f
mov eax, dword [ebp - 0x634]
cmp eax, esi
je 0x40dc59
cmp eax, 1
jne 0x40dcb7
mov eax, dword [edi + 0x14]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 8
jmp 0x40dccf
cmp word [ebx + eax + 0x41c], si
jne 0x40db3b
lea eax, [ebx + eax + 0x624]
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x63c], 0x208
call fcn.0040a210
mov esi, eax
test esi, esi
je 0x40db35
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x40e]
push ecx
mov word [ebp - 0x410], ax
call fcn.005149a0
mov eax, dword [esi + 0x38]
add esp, 0xc
test eax, eax
je 0x40dad5
mov edx, dword [ebp - 0x624]
lea ecx, [ebx + edx + 0x82c]
push ecx
push eax
push 0x53d734
lea edx, [ebp - 0x410]
push 0x200
push edx
call fcn.00515c51
add esp, 0x14
jmp 0x40daf7
mov eax, dword [ebp - 0x624]
lea ecx, [ebx + eax + 0x82c]
push ecx
lea edx, [ebp - 0x410]
push 0x200
push edx
call fcn.00515853
add esp, 0xc
mov ecx, dword [esi + 0x3c]
mov eax, dword [ebp - 0x624]
push ecx
lea edx, [ebp - 0x63c]
push edx
lea ecx, [ebx + eax + 0x41c]
push ecx
lea edx, [ebp - 0x638]
push edx
mov edx, dword [esi + 0x34]
lea eax, [ebx + eax + 0xa34]
push eax
lea ecx, [ebp - 0x410]
push ecx
push edx
lea ecx, [edi + 0x154]
call fcn.00403240
mov eax, dword [ebp - 0x624]
mov esi, dword [ebp - 0x634]
lea eax, [ebx + eax + 0x41c]
push eax
lea ecx, [ebp - 0x618]
push 0x104
push ecx
mov dword [ebp - 0x620], esi
mov dword [ebp - 0x61c], 0
call fcn.00515853
mov ecx, dword [ebp - 0x624]
add esp, 0xc
cmp word [ebx + ecx + 0x41c], 0
je 0x40db96
lea edx, [ebp - 0x620]
push edx
push 0x406ae0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0x624]
mov eax, dword [ebp - 0x61c]
test eax, eax
jne 0x40dbc4
lea eax, [ebx + ecx + 0x20c]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x61c], eax
test eax, eax
je 0x40dc59
mov ecx, dword [ebp - 0x624]
lea edx, [ebp - 0x638]
push edx
mov dword [ebp - 0x638], 0
mov edx, dword [ebx + ecx + 0x418]
mov ecx, dword [ebx + ecx + 0x414]
push edx
push 1
push 0
push 0
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push esi
push 1
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40dc59
mov edx, dword [ebp - 0x624]
mov eax, dword [ebx + edx + 0x418]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40dc59
mov ecx, dword [ebp - 0x624]
cmp dword [ebx + ecx + 0xc3c], 2
je 0x40dd15
lea edx, [ebp - 0x640]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x640]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x630]
mov esi, dword [ebp - 0x62c]
inc eax
add ebx, 0xc40
mov dword [ebp - 0x630], eax
cmp eax, dword [ebp - 0x628]
jb 0x40d970
mov ecx, dword [ebp - 0x624]
push ecx
lea edi, [esi + 0x154]
mov ecx, edi
call fcn.00402ca0
mov ecx, esi
call fcn.00408210
test eax, eax
je 0x40dd62
cmp dword [esi + 0x14], 3
jne 0x40ddaf
mov ecx, esi
call fcn.0040c9b0
jmp 0x40de47
cmp eax, 2
jne 0x40dcca
xor eax, eax
cmp dword [edi + 0x14], 3
sete al
add eax, 9
jmp 0x40dccf
mov eax, 0xb
push esi
push esi
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x628], esp
push ecx
lea ecx, [edi + 0x154]
call fcn.00403b40
mov edx, dword [edi + 0xd740]
push edx
mov ecx, edi
call fcn.00408c40
mov eax, dword [ebp - 0x624]
push eax
lea ecx, [edi + 0x154]
call fcn.00402ca0
or eax, 0xffffffff
jmp 0x40def9
push esi
push esi
push 0xb
jmp 0x40dcd2
xor eax, eax
cmp dword [edi + 0x14], 3
push 0
sete al
push 0
add eax, 9
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x628], esp
push ecx
lea ecx, [edi + 0x154]
call fcn.00403b40
mov edx, dword [edi + 0xd740]
push edx
mov ecx, edi
call fcn.00408c40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x624]
push eax
lea ecx, [edi + 0x154]
call fcn.00402ca0
mov eax, 0x643
jmp 0x40def9
push esi
push esi
push 3
push ecx
mov ecx, esp
mov dword [ebp - 0x628], esp
push ecx
lea ecx, [edi + 0x154]
call fcn.00403b40
mov edx, dword [edi + 0xd740]
push edx
mov ecx, edi
call fcn.00408c40
mov eax, dword [ebp - 0x624]
push eax
lea ecx, [edi + 0x154]
call fcn.00402ca0
mov eax, 0x643
jmp 0x40def9
push 0x368
call fcn.00415512
add esp, 4
mov dword [ebp - 0x628], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40ddd8
push 0
mov ecx, eax
call fcn.004111a0
jmp 0x40ddda
xor eax, eax
lea edx, [ebp - 0x628]
or ebx, 0xffffffff
push edx
mov ecx, edi
mov dword [ebp - 4], ebx
mov dword [esi + 0xd734], eax
call fcn.00403b40
mov eax, dword [eax]
mov ecx, dword [esi + 0xd734]
push esi
push eax
mov dword [ebp - 4], 2
call fcn.00411460
mov eax, dword [ebp - 0x628]
add eax, 0xfffffff0
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40de2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xd734]
mov edx, dword [ecx]
mov eax, dword [edx + 0x170]
call eax
mov ecx, dword [esi + 0xd734]
call fcn.00410cd0
mov ebx, eax
cmp ebx, 0xbc2
je 0x40def7
cmp dword [esi + 0x14], 3
je 0x40dea2
cmp dword [esi + 0xd73c], 0
jne 0x40dea2
lea ecx, [ebp - 0x62c]
push ecx
mov ecx, edi
mov dword [ebp - 0x62c], 0
call fcn.00402cc0
test eax, eax
je 0x40de94
mov edx, dword [ebp - 0x62c]
push 1
push edx
push 1
mov ecx, esi
call fcn.0040a020
mov ebx, eax
mov eax, dword [ebp - 0x62c]
push eax
mov ecx, edi
call fcn.00402ca0
cmp ebx, 0xbc2
je 0x40def7
cmp dword [esi + 0x14], 3
je 0x40def7
cmp dword [esi + 0xd73c], 0
jne 0x40def7
lea ecx, [ebp - 0x630]
push ecx
mov ecx, edi
mov dword [ebp - 0x630], 0
call fcn.00402ed0
test eax, eax
je 0x40dee9
mov edx, dword [ebp - 0x630]
push 1
push edx
push 1
mov ecx, esi
call fcn.0040a020
mov ebx, eax
mov eax, dword [ebp - 0x630]
push eax
mov ecx, edi
call fcn.00402ca0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret