Function at 0x704449b0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x26c
mov ebx, dword [esp + 0x280]
mov ebp, dword [esp + 0x284]
mov eax, dword [esp + 0x28c]
cmp dword [ebx + 8], 8
jne 0x70444dc8
lea edi, [ebx + 0xc]
mov ecx, 0x146
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x528], al
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.ThorConnWndClass
mov dword [esp + 4], str.ThorConnWndClass
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [ebx + 0x53c], eax
sub esp, 0x30
test eax, eax
je 0x70444d08
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowLongW]
movzx eax, word [ebp + 0x504]
sub esp, 0xc
lea esi, [esp + 0x36]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x7045cd41
mov dword [esp + 4], 0xa
mov dword [esp], esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 6
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
call fcn.704448b0
mov eax, dword [ebx + 4]
mov dword [ebx + 8], 0
test eax, eax
je 0x70444b05
mov edx, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
lea eax, [esp + 0x30]
add ebp, 0x300
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.ws2_32.dll_getaddrinfo
sub esp, 0x10
mov edi, eax
test eax, eax
jne 0x70444ddf
mov esi, dword [esp + 0x30]
test esi, esi
je 0x70444dd8
mov ebp, dword [sym.imp.ws2_32.dll_socket]
test byte [0x7045a06c], 8
jne 0x70444c40
mov eax, dword [ebx + 4]
mov dword [ebx + 8], 1
test eax, eax
je 0x70444b78
mov edx, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov eax, dword [esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call ebp
sub esp, 0xc
cmp eax, 0xffffffff
je 0x70444c10
mov edx, dword [esi + 0x10]
mov dword [ebx + 0x524], eax
mov dword [esp + 8], edx
mov edx, dword [esi + 0x18]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.ws2_32.dll_connect]
sub esp, 0xc
test eax, eax
js 0x70444ce0
mov eax, dword [ebx + 4]
mov dword [ebx + 8], 3
test eax, eax
je 0x70444be3
mov edx, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], 3
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.ws2_32.dll_freeaddrinfo
sub esp, 4
test byte [0x7045a06c], 8
jne 0x70444d30
add esp, 0x26c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x7045a06c], 4
jne 0x70444d68
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x1c]
test esi, esi
jne 0x70444b46
mov dword [esp], eax
mov edi, 0x800ccc0d
call sub.ws2_32.dll_freeaddrinfo
sub esp, 4
jmp 0x70444bff
mov dword [esp], 0x7045a06c
call fcn.70458b40
test al, 8
je 0x70444b53
lea eax, [esp + 0x160]
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x10], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x14], 0x100
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call sub.ws2_32.dll_getnameinfo
sub esp, 0x1c
test byte [0x7045a06c], 8
je 0x70444b53
lea eax, [esp + 0x160]
mov dword [esp + 0xc], str.trying__s:_s_n
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.InternetTransport_Connect
mov dword [esp + 4], 0x7045a06c
mov dword [esp], 3
call fcn.704444d0
jmp 0x70444b53
test byte [0x7045a06c], 4
jne 0x70444d98
mov eax, dword [ebx + 0x524]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_closesocket]
sub esp, 4
jmp 0x70444c1d
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovg edi, eax
add esp, 0x26c
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.connected_n
mov dword [esp + 8], str.InternetTransport_Connect
mov dword [esp + 4], 0x7045a06c
mov dword [esp], 3
call fcn.704444d0
add esp, 0x26c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.socket___failed_n
mov dword [esp + 8], str.InternetTransport_Connect
mov dword [esp + 4], 0x7045a06c
mov dword [esp], 2
call fcn.704444d0
jmp 0x70444c1d
mov dword [esp + 0xc], str.connect___failed_n
mov dword [esp + 8], str.InternetTransport_Connect
mov dword [esp + 4], 0x7045a06c
mov dword [esp], 2
call fcn.704444d0
jmp 0x70444ced
mov edi, 0x800ccc03
jmp 0x70444bff
xor eax, eax
jmp 0x70444c2c
test byte [0x7045a06c], 2
jne 0x70444df2
mov edi, 0x800ccc0d
jmp 0x70444bff
mov dword [esp + 0x10], eax
mov edi, 0x800ccc0d
mov dword [esp + 0xc], str.getaddrinfo_failed:__d_n
mov dword [esp + 8], str.InternetTransport_Connect
mov dword [esp + 4], 0x7045a06c
mov dword [esp], 1
call fcn.704444d0
jmp 0x70444bff