Function at 0x1007265
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0100729b
test eax, eax
je 0x1008510
cmp dword [esi + 0xac], 1
mov ecx, esi
jne 0x1008512
cmp dword [esi + 4], 0
pop esi
je 0x1007624
jmp fcn.0100752a
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor edi, edi
push 0x1002294
mov esi, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
call fcn.0100229d
push dword [esi + 0x58]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
je 0x1007f00
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [esi + 0x54]
call fcn.010027a0
push 0xe
push dword [esi + 0x54]
mov dword [ebp - 0x10], eax
call fcn.01001dcb
push 0xd
push dword [esi + 0x54]
mov dword [ebp - 0xc], eax
call fcn.01001dcb
mov esi, eax
cmp dword [ebp - 0x10], edi
je 0x1007f0c
push ebx
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov ebx, dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov dword [ebp - 0x14], eax
cmp esi, edi
je 0x10076d8
push 0x101
push 0
push esi
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov edi, eax
test edi, edi
je 0x1007f47
cmp edi, dword [ebp - 4]
je 0x10076d8
push edi
call ebx
test eax, eax
je 0x1007f40
cmp dword [ebp - 0xc], 0
mov esi, dword [sym.imp.USER32.dll_SetThreadDesktop]
je 0x100770e
push 0x40
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov dword [ebp - 8], eax
test eax, eax
je 0x1007f32
cmp eax, dword [ebp - 0x14]
je 0x100770e
push eax
call esi
test eax, eax
je 0x1007f29
push 0
push 0
push 0x10
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x1007f53
mov dword [ebp - 0x18], 1
cmp dword [ebp - 8], 0
je 0x1007746
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 8], eax
je 0x1007746
push eax
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CloseDesktop]
test edi, edi
je 0x100775b
cmp edi, dword [ebp - 4]
je 0x100775b
push dword [ebp - 4]
call ebx
push edi
call dword [sym.imp.USER32.dll_CloseWindowStation]
mov eax, dword [ebp - 0x18]
pop ebx
pop edi
pop esi
leave
ret
call fcn.01002877
xor eax, eax
jmp 0x100775f
push 0x80004021
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x1ff
call fcn.01001c99
push eax
call fcn.0100229d
jmp 0x1007f05
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CloseDesktop]
test edi, edi
je 0x1007f47
cmp edi, dword [ebp - 4]
je 0x1007f47
push dword [ebp - 4]
call ebx
push edi
call dword [sym.imp.USER32.dll_CloseWindowStation]
call fcn.01002877
xor eax, eax
jmp 0x100775e
call fcn.01002877
jmp 0x100772c
pop esi
ret
pop esi
jmp 0x100b116
push 0x44
mov eax, 0x100fa05
call fcn.01001e76
mov edi, ecx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], esi
push 0x10
push dword [edi + 0x54]
call fcn.01001dcb
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x100b17c
push 0x800300fd
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002877
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call fcn.01007097
mov eax, esi
call fcn.01001894
ret
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push esi
push eax
call dword [ecx + 0x3c]
mov dword [ebp - 0x14], eax
cmp eax, esi
jge 0x100b19b
push eax
call fcn.0100caf3
push 1
lea ecx, [ebp - 0x50]
call fcn.0100b0c7
lea eax, [ebp - 0x50]
push eax
push 0x100b3e0
push dword [ebp - 0x20]
call fcn.0100bea5
mov dword [ebp - 0x14], eax
cmp eax, esi
jge 0x100b1c3
push eax
call fcn.0100caf3
push 0x1006380
lea ecx, [ebp - 0x38]
call fcn.01002329
mov ebx, eax
mov byte [ebp - 4], 2
push dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
call fcn.01002329
mov byte [ebp - 4], 3
cmp dword [ebx], esi
je 0x100b1f2
mov ebx, dword [ebx]
mov ecx, dword [ebx]
mov dword [ebp - 0x30], ecx
jmp 0x100b1f5
mov dword [ebp - 0x30], esi
cmp dword [eax], esi
je 0x100b1ff
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100b201
xor ecx, ecx
mov eax, dword [edi + 0x44]
mov edx, dword [eax]
lea ebx, [ebp - 0x18]
push ebx
push esi
push dword [ebp - 0x20]
push esi
push 0x10
push dword [ebp - 0x30]
push ecx
push eax
call dword [edx + 0x60]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
cmp ecx, esi
je 0x100b22f
call fcn.010023a2
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
cmp ecx, esi
je 0x100b242
call fcn.010023a2
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x14], esi
jge 0x100b24f
push dword [ebp - 0x14]
call fcn.0100caf3
push dword [edi + 0x50]
push dword [ebp - 0x18]
call fcn.01003191
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, esi
jge 0x100b269
push edi
call fcn.0100caf3
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x24], 0x3c
jae 0x100b2a3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push esi
push eax
call dword [ecx + 0x18]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, esi
jge 0x100b29f
cmp edi, 0x40004
je 0x100b29a
push edi
call fcn.0100caf3
inc dword [ebp - 0x24]
jmp 0x100b26f
cmp dword [ebp - 0x24], 0x3c
jne 0x100b2ab
push edi
call fcn.0100caf3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push 0x3e8
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
cmp eax, esi
jge 0x100b2ca
push eax
call fcn.0100caf3
mov dword [ebp - 0x1c], esi
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x100b3c8
push dword [ebp - 0x28]
call fcn.01007375
test eax, eax
jne 0x100b2ed
push 0x54f
call fcn.0100caf3
cmp dword [ebp - 0x1c], esi
je 0x100b353
cmp dword [ebp - 0x1c], 2
jne 0x100b2ff
push 0x80030005
jmp 0x100b30a
cmp dword [ebp - 0x1c], 3
jne 0x100b317
push 0x2098
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002877
jmp 0x100b35a
lea ecx, [ebp - 0x30]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 4
push dword [ebp - 0x1c]
push 0x1fd
call fcn.01001c99
push eax
lea eax, [ebp - 0x30]
push eax
call sub.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0xc
push dword [ebp - 0x30]
call fcn.0100229d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
jmp 0x100b35a
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], esi
jmp 0x100b38f
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x100b39f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x100b3af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x100b3bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x2c]
jmp 0x100b160