Function at 0x4074a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x489d3a
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push str.click
mov ecx, esi
call fcn.0043133d
push eax
call fcn.0041aed4
add esp, 8
test eax, eax
jne 0x4077ae
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x178]
push edx
call eax
push str.closebtn
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004316eb
lea ecx, [ebp - 0x178]
mov bl, al
mov dword [ebp - 4], 0xffffffff
call fcn.004311e9
test bl, bl
je 0x40756a
mov ecx, dword [edi + 0x7e8]
call fcn.0043b563
cmp eax, 2
jne 0x40753f
push 0x406830
call fcn.0041a66e
add esp, 4
push 1
lea ecx, [edi - 0x20]
call fcn.00430c2d
push 0
push 0
push 0x12
lea ecx, [edi - 0x20]
call fcn.00430bf8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x108]
cmp eax, dword [edi + 0x7ec]
jne 0x40759e
mov ecx, dword [edi + 0x7e8]
call fcn.0043b563
cmp eax, 2
jne 0x40753f
push 1
push 0
lea ecx, [edi - 0x20]
call fcn.004307a7
lea ecx, [edi - 0x20]
call fcn.00407fc0
jmp 0x407532
cmp eax, dword [edi + 0x7f8]
jne 0x40778c
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x4b1540
mov dword [ebp - 0x10], 0xffffffff
call fcn.0043133d
mov ebx, eax
call fcn.0040a490
add esp, 4
test eax, eax
je 0x407781
cmp dword [ebp - 0x10], 0
jbe 0x407781
mov eax, str.MESSAGEBOX_CANCEL
lea ecx, [ebp - 0x30]
call fcn.004082a0
mov eax, str.QUIT_WARNING_MESSAGEBOX_OK
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 1
call fcn.004082a0
mov eax, str.QUIT_WARNING_MESSAGEBOX_CAPTION
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.004082a0
mov eax, str.QUIT_WARNING_MESSAGEBOX_TEXT
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.004082a0
lea edx, [ebp - 0xd8]
push edx
mov byte [ebp - 4], 4
call fcn.00408f50
push eax
lea ecx, [ebp - 0x30]
call fcn.00406710
mov esi, eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 5
call fcn.00408f50
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406710
mov ebx, eax
lea ecx, [ebp - 0xf4]
push ecx
mov byte [ebp - 4], 6
call fcn.00408f50
push eax
lea ecx, [ebp - 0x68]
call fcn.00406710
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0xa0]
push edx
mov byte [ebp - 4], 7
call fcn.00408f50
push eax
lea ecx, [ebp - 0x84]
call fcn.00406710
mov ecx, 8
mov byte [ebp - 4], cl
cmp dword [esi + 0x14], ecx
jb 0x40769e
mov esi, dword [esi]
cmp dword [ebx + 0x14], ecx
jb 0x4076a5
mov ebx, dword [ebx]
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x14], ecx
jb 0x4076af
mov edx, dword [edx]
cmp dword [eax + 0x14], ecx
jb 0x4076b6
mov eax, dword [eax]
push esi
push ebx
push 0x34
push edx
lea ecx, [edi - 0x20]
push eax
call fcn.00430771
push eax
call fcn.0040b510
add esp, 0x18
lea esi, [ebp - 0xa0]
mov ebx, eax
call fcn.0040ff10
lea esi, [ebp - 0xf4]
call fcn.0040ff10
lea esi, [ebp - 0xbc]
call fcn.0040ff10
lea esi, [ebp - 0xd8]
call fcn.0040ff10
lea esi, [ebp - 0x84]
call fcn.0040ff10
lea esi, [ebp - 0x68]
call fcn.0040ff10
lea esi, [ebp - 0x4c]
call fcn.0040ff10
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ff10
cmp ebx, 6
jne 0x407763
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x407753
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x20]
push eax
call fcn.00407b20
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.00433b97
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
lea ecx, [edi - 0x20]
push ecx
call fcn.00407b20
jmp 0x407766
cmp eax, dword [edi + 0x7fc]
jne 0x407766
push 1
lea ecx, [edi - 0x20]
call fcn.00430c2d
push 0
push 0
push 0x12
lea ecx, [edi - 0x20]
call fcn.00430bf8
jmp 0x407766
push str.setfocus
mov ecx, esi
call fcn.0043133d
push eax
call fcn.0041aed4
add esp, 8
test eax, eax
jne 0x407766
mov ecx, dword [edi + 0x808]
mov eax, dword [esi + 0x108]
cmp ecx, eax
jne 0x4077f8
cmp byte [edi + 0x915], 0
je 0x407766
mov byte [edi + 0x915], 0
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x4a05a8
call eax
jmp 0x407766
mov ecx, dword [edi + 0x804]
cmp ecx, eax
jne 0x407766
cmp byte [edi + 0x916], 0
je 0x407766
mov byte [edi + 0x916], 0
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x4a05a8
call eax
jmp 0x407766