Function at 0x417f70
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0d30
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4cc99c]
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 eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov esi, edx
xor eax, eax
mov dword [esi + 0xa8], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
cmp dword [0x4cdeb8], eax
jne 0x417fc1
mov dword [0x4cdeb8], eax
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [esi + 0x20]
push eax
mov ebx, 0x4cde88
call fcn.00403020
mov ecx, dword [ebp + 0xc]
add esp, 8
movzx ebx, ax
xor eax, eax
push eax
push 0x8000080
push 0x56000000
push eax
push ecx
push edi
mov eax, esi
call fcn.00403220
test eax, eax
jne 0x418017
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x41800d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
jmp 0x4182d3
mov eax, dword [esi + 4]
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x415b40
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push 0
mov dword [esi + 0x38], eax
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, dword [esi + 4]
lea ebx, [esi + 0x3c]
push ebx
push 0x4a4bac
push 3
push 0
push 0x4a4bcc
mov dword [0x4e9ce0], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x4182bb
mov eax, dword [ebx]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x24]
push ecx
push 0x4a4c1c
push eax
call edx
mov edi, eax
test edi, edi
js 0x4182bb
cmp dword [esi + 0x24], 0
jne 0x4180b7
push 0x30
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x4180b2
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
push ecx
push edx
mov ecx, esi
call fcn.0040aef0
jmp 0x4180b4
xor eax, eax
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [esi + 0x24]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
test edi, edi
js 0x4182bb
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 0
push str.Huofeng_GameHost
push eax
call edx
mov edi, eax
test edi, edi
js 0x4182bb
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [esi + 0x24]
push 0
push ecx
push 0
push 0xfffffffffffffffb
push eax
call edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [esi + 0x24]
push 0xffffffffffffffff
push edx
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf8]
push 0xffffffffffffffff
push eax
call edx
mov edi, eax
test edi, edi
js 0x4182bb
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
push 0
push eax
call edx
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x60]
push 0
push eax
call edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx]
sub edx, dword [ebp - 0x20]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx]
sub edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x70]
call eax
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push 0x4a4c8c
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
test edi, edi
js 0x4182a8
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
lea ecx, [esi + 0x2c]
push ecx
push 0x4a4bbc
push eax
mov eax, dword [edx + 0x10]
call eax
mov edi, eax
test edi, edi
js 0x4182a8
push 0xc
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x4181e8
mov dword [eax], vtable.CBrowserEventSink.0
mov dword [eax + 8], esi
mov ecx, eax
jmp 0x4181ea
xor ecx, ecx
mov eax, dword [esi + 0x2c]
lea edi, [esi + 0x30]
push edi
mov dword [esi + 0x28], ecx
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov edi, eax
test edi, edi
js 0x4182a8
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
lea edi, [esi + 0x74]
push edx
mov ecx, edi
call fcn.0040aeb0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x50]
push eax
call esi
lea ecx, [ebp - 0x40]
push ecx
call esi
mov edx, 3
push edi
mov eax, 0x4ab248
mov word [ebp - 0x50], dx
mov dword [ebp - 0x48], 0xe
call fcn.004154e0
test al, al
je 0x418279
push str.about:blank
lea ecx, [ebp - 0x60]
call fcn.00414ac0
lea edx, [ebp - 0x40]
push edx
push edx
push edx
mov byte [ebp - 4], 2
mov ebx, dword [ebx]
mov ecx, dword [ebx]
lea edx, [ebp - 0x50]
push edx
push eax
mov eax, dword [ecx + 0xd0]
push ebx
call eax
lea ecx, [ebp - 0x60]
mov edi, eax
push ecx
jmp 0x4182a2
lea esi, [ebp - 0x60]
call fcn.00415530
lea ecx, [ebp - 0x40]
push ecx
push ecx
push ecx
mov byte [ebp - 4], 3
mov ebx, dword [ebx]
mov edx, dword [ebx]
mov edx, dword [edx + 0xd0]
lea ecx, [ebp - 0x50]
push ecx
push eax
push ebx
call edx
mov edi, eax
mov eax, esi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4182bb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4182d1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
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.00497792
mov esp, ebp
pop ebp
ret 0x10