Function at 0x40f970
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bfd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58dd10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [0x5962c0], 0
jne 0x40f9b8
lea eax, [esi + 0x180]
push eax
lea ecx, [esi + 0x1cc]
call fcn.0041dac2
push 1
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x180]
push eax
call fcn.004047f0
mov eax, dword [eax]
mov ecx, 0x568e50
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f9f6
test dx, dx
je 0x40f9f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f9f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f9d0
xor eax, eax
jmp 0x40f9fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x14]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40fa35
push 1
push 0x568e50
lea ecx, [esi + 0x180]
call fcn.00408ff0
push ecx
lea eax, [esi + 0x180]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00402e50
call fcn.0040c6a0
add esp, 4
push 0
test eax, eax
jne 0x40fa78
push 0x5696f8
push 0x569f50
mov ecx, esi
call fcn.0041b3da
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push str.JWanBrowser_Class
mov dword [ebp - 0x14], 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
test edi, edi
je 0x40fb33
lea esp, [esp]
cmp dword [ebp - 0x14], 0
jne 0x40fb0c
cmp dword [0x5962c0], 0
jne 0x40fb0c
push 0x569f94
lea ecx, [ebp - 0x10]
call fcn.00401670
push 0x41
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
push 0x5696f8
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0041b3da
mov dword [ebp - 4], 0xffffffff
cmp eax, 1
mov eax, dword [ebp - 0x10]
jne 0x40fc07
add eax, 0xfffffff0
mov dword [ebp - 0x14], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fb0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xc8
call ebx
push 0
push str.JWanBrowser_Class
call esi
mov edi, eax
test edi, edi
jne 0x40faa0
push 0
push str.JWanBrowser1_Class
call esi
test eax, eax
je 0x40fb61
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xc8
call ebx
push 0
push str.JWanBrowser1_Class
call esi
test eax, eax
jne 0x40fb40
push 0
push str.JWIconTip_Class
call esi
test eax, eax
je 0x40fb8b
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xc8
call ebx
push 0
push str.JWIconTip_Class
call esi
push 0x12c
call ebx
mov esi, dword [ebp - 0x18]
call fcn.00409e40
push 2
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x56a010
call fcn.00401670
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x180]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.setup.temp
call fcn.00401670
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.0040c8a0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push esi
push 0x40cdf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fbf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret