Function at 0x10001670
Capabilities:
Create thread

Disassembly:
push ebp
mov edx, 2
mov ebp, esp
push ebx
xor ebx, ebx
sub esp, 0x18
mov dword [esp], str.127.0.0.1
mov word [0x10007148], dx
call dword [sym.imp.wsock32.dll_inet_addr]
mov dword [0x1000714c], eax
sub esp, 4
mov dword [esp], 0x1f0b
call dword [sym.imp.wsock32.dll_htons]
mov ecx, 0x10
mov dword [0x10007140], ecx
mov word [0x1000714a], ax
sub esp, 4
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], ebx
mov ebx, dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [esp + 4], eax
mov dword [esp], 0
call ebx
mov dword [0x10007014], eax
sub esp, 0x10
test eax, eax
je 0x100017e0
mov dword [esp], 0
xor eax, eax
xor ecx, ecx
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
call ebx
mov dword [0x10007010], eax
sub esp, 0x10
test eax, eax
je 0x10001920
mov dword [esp], 0
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call ebx
mov dword [0x1000700c], eax
sub esp, 0x10
test eax, eax
je 0x100018d0
mov dword [esp], 0
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call ebx
mov dword [0x10007008], eax
sub esp, 0x10
test eax, eax
je 0x10001880
mov dword [esp], 0
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, sym._controller_update_thread_proc_4
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
test eax, eax
mov ebx, eax
je 0x10001830
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0xffffffff
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [0x10007014]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ebx, dword [ebp - 4]
mov eax, 1
sub esp, 8
leave
ret 0xc
test byte [0x10003024], 2
je 0x100016ea
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.failed_to_create_start_event__error__lu_n
mov dword [esp + 0xc], eax
mov eax, str.start_update_thread_once
mov dword [esp + 8], eax
mov eax, 0x10003024
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x100016ea
test byte [0x10003024], 2
je 0x100017a9
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, str.failed_to_create_update_thread__error__lu_n
mov ecx, str.start_update_thread_once
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, 0x10003024
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x100017a9
test byte [0x10003024], 2
je 0x1000176e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov ecx, str.failed_to_create_update_event__error__lu_n
mov ebx, str.start_update_thread_once
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, 0x10003024
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x1000176e
test byte [0x10003024], 2
je 0x10001740
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, str.start_update_thread_once
mov ecx, 0x10003024
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.failed_to_create_done_event__error__lu_n
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0
jmp 0x10001740
test byte [0x10003024], 2
je 0x10001715
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, 0x10003024
mov dword [esp + 4], edx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.failed_to_create_stop_event__error__lu_n
mov dword [esp + 0xc], eax
mov eax, str.start_update_thread_once
mov dword [esp + 8], eax
call sym._wine_dbg_log.constprop.0
jmp 0x10001715