Function at 0x409ee0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3bc
mov eax, dword [0x453348]
xor eax, esp
mov dword [esp + 0x3b8], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp dword [esi + 0x14], 0x10
push edi
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x409f1e
mov eax, dword [esi]
jmp 0x409f20
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409f23
sub eax, edx
push 1
dec eax
push eax
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00401e30
mov edi, dword [esp + 0x44]
mov eax, edi
cmp edi, 1
jb 0x409f5a
mov eax, 1
cmp dword [esp + 0x48], 0x10
mov edx, dword [esp + 0x34]
jae 0x409f69
lea edx, [esp + 0x34]
mov ecx, 0x44e1b4
call fcn.00401060
cmp eax, ebx
jne 0x409f8b
cmp edi, 1
jae 0x409f81
or eax, 0xffffffff
jmp 0x409f89
xor eax, eax
cmp edi, 1
setne al
cmp eax, ebx
setne byte [esp + 0x13]
cmp dword [esp + 0x48], 0x10
jb 0x409fa4
mov eax, dword [esp + 0x34]
push eax
call fcn.0041d1cc
add esp, 4
cmp byte [esp + 0x13], bl
je 0x409fbe
cmp byte [ebp + 8], 1
je 0x409fbe
push 1
mov eax, 0x44e1b4
mov ecx, esi
call fcn.00414470
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x78]
call fcn.00401e30
push 0xb
mov edi, 0xf
push str.http:__www.
lea ecx, [esp + 0x230]
mov dword [esp + 0x244], edi
mov dword [esp + 0x240], ebx
mov byte [esp + 0x230], bl
call fcn.00401bb0
push 0xc
push str.https:__www.
lea ecx, [esp + 0x24c]
mov dword [esp + 0x260], edi
mov dword [esp + 0x25c], ebx
mov byte [esp + 0x24c], bl
call fcn.00401bb0
push 7
push str.http:__
lea ecx, [esp + 0x268]
mov dword [esp + 0x27c], edi
mov dword [esp + 0x278], ebx
mov byte [esp + 0x268], bl
call fcn.00401bb0
push 8
push str.https:__
lea ecx, [esp + 0x284]
mov dword [esp + 0x298], edi
mov dword [esp + 0x294], ebx
mov byte [esp + 0x284], bl
call fcn.00401bb0
push 4
push str.www.
lea ecx, [esp + 0x2a0]
mov dword [esp + 0x2b4], edi
mov dword [esp + 0x2b0], ebx
mov byte [esp + 0x2a0], bl
call fcn.00401bb0
lea esi, [esp + 0x228]
mov dword [esp + 0x14], 5
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x40a0b4
mov eax, dword [esi]
jmp 0x40a0b6
mov eax, esi
push ecx
push eax
lea ecx, [esp + 0x74]
push ecx
xor eax, eax
call fcn.00401a50
cmp eax, 0xffffffff
je 0x40a152
mov edx, dword [esp + 0x7c]
mov eax, dword [esi + 0x10]
push edx
push eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00401e30
cmp dword [esp + 0x80], 0x10
jb 0x40a107
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0041d1cc
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jae 0x40a137
mov edx, dword [esp + 0x44]
inc edx
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.0041c5a0
add esp, 0xc
jmp 0x40a13f
mov edx, dword [esp + 0x34]
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esi, 0x1c
dec dword [esp + 0x14]
jne 0x40a0a7
push 1
push 0x44e1b4
lea edx, [esp + 0x74]
push edx
xor eax, eax
call fcn.00401a50
mov esi, eax
push esi
push ebx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401e30
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00401e30
cmp dword [0x456010], 0x10
jb 0x40a1c5
mov edx, dword [0x455ffc]
push edx
call fcn.0041d1cc
add esp, 4
mov esi, 0x10
mov dword [0x456010], edi
mov dword [0x45600c], ebx
mov byte [0x455ffc], bl
cmp dword [esp + 0x48], esi
jae 0x40a1fc
mov eax, dword [esp + 0x44]
inc eax
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x455ffc
call fcn.0041c5a0
add esp, 0xc
jmp 0x40a206
mov edx, dword [esp + 0x34]
mov dword [0x455ffc], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [0x45600c], eax
mov eax, dword [esp + 0x18]
mov dword [0x456010], ecx
cmp dword [esp + 0x2c], esi
jae 0x40a227
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a230
sub eax, edx
push 0x103
lea edx, [esp + 0x2bd]
push ebx
push edx
mov esi, eax
mov byte [esp + 0x2c4], bl
call fcn.00427fa0
push 0xa
lea eax, [esp + 0x2c8]
push eax
push esi
call fcn.00442d41
add esp, 0x18
push 1
push 0x44e278
lea ecx, [esp + 0x74]
push ecx
xor eax, eax
call fcn.00401a50
push 1
push 0x44e278
lea edx, [esp + 0x74]
mov esi, eax
push edx
xor eax, eax
call fcn.00401a50
cmp eax, 0xffffffff
je 0x40a30a
push esi
push ebx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00401e30
cmp dword [esp + 0x2c], 0x10
jb 0x40a2c5
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041d1cc
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jae 0x40a2f2
mov edx, dword [esp + 0x44]
inc edx
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0041c5a0
add esp, 0xc
jmp 0x40a2fa
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
push esi
push ebx
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00401e30
push 2
inc esi
push esi
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00401e30
cmp dword [0x456064], 0x10
jb 0x40a35c
mov ecx, dword [0x456050]
push ecx
call fcn.0041d1cc
add esp, 4
mov esi, 0x10
mov dword [0x456064], edi
mov dword [0x456060], ebx
mov byte [0x456050], bl
cmp dword [esp + 0x48], esi
jae 0x40a393
mov edx, dword [esp + 0x44]
inc edx
push edx
lea eax, [esp + 0x38]
push eax
push 0x456050
call fcn.0041c5a0
add esp, 0xc
jmp 0x40a39d
mov ecx, dword [esp + 0x34]
mov dword [0x456050], ecx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [0x456064], eax
mov eax, dword [0x455ffc]
mov dword [0x456060], edx
cmp dword [0x456010], esi
jae 0x40a3c2
mov eax, 0x455ffc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a3c5
sub eax, edx
cmp eax, 1
mov eax, dword [esp + 0x50]
setne cl
mov byte [0x457194], cl
cmp dword [esp + 0x64], esi
jae 0x40a3e8
lea eax, [esp + 0x50]
mov al, byte [eax]
sub al, 0x30
cmp al, 9
ja 0x40a3fb
mov byte [0x459c3c], bl
jmp 0x40a686
lea edx, [esp + 0x98]
push edx
push 0x202
mov byte [0x459c3c], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40a4b9
cmp dword [esp + 0x64], esi
jb 0x40a430
mov eax, dword [esp + 0x50]
push eax
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x2c], esi
jb 0x40a44f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov edi, 4
lea esi, [esp + 0x2c8]
sub esi, 0x1c
cmp dword [esi], 0x10
jb 0x40a47b
mov edx, dword [esi - 0x14]
push edx
call fcn.0041d1cc
add esp, 4
dec edi
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
jns 0x40a467
cmp dword [esp + 0x80], 0x10
jb 0x40a4a1
mov eax, dword [esp + 0x6c]
push eax
call fcn.0041d1cc
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.0041c2f8
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], bl
jne 0x40a586
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x40a4d0
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x40a646
cmp dword [esp + 0x64], esi
jb 0x40a4f2
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x2c], esi
jb 0x40a511
mov edx, dword [esp + 0x18]
push edx
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov edi, 4
lea esi, [esp + 0x2c8]
lea esp, [esp]
sub esi, 0x1c
cmp dword [esi], 0x10
jb 0x40a544
mov eax, dword [esi - 0x14]
push eax
call fcn.0041d1cc
add esp, 4
dec edi
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
jns 0x40a530
cmp dword [esp + 0x80], 0x10
jb 0x40a4a1
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0041d1cc
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.0041c2f8
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], esi
jae 0x40a594
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x40a646
cmp dword [esp + 0x64], esi
jb 0x40a5b6
mov edx, dword [esp + 0x50]
push edx
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x2c], esi
jb 0x40a5d5
mov eax, dword [esp + 0x18]
push eax
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov edi, 4
lea esi, [esp + 0x2c8]
lea ecx, [ecx]
sub esi, 0x1c
cmp dword [esi], 0x10
jb 0x40a604
mov ecx, dword [esi - 0x14]
push ecx
call fcn.0041d1cc
add esp, 4
dec edi
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
jns 0x40a5f0
cmp dword [esp + 0x80], 0x10
jb 0x40a4a1
mov edx, dword [esp + 0x6c]
push edx
call fcn.0041d1cc
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.0041c2f8
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
xor edi, edi
cmp eax, ebx
je 0x40a686
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x40a665
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00401bb0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + edi*4 + 4]
inc edi
cmp eax, ebx
jne 0x40a655
lea edx, [esp + 0x98]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40a74b
mov edi, 0x10
cmp dword [esp + 0x64], edi
jb 0x40a6b9
mov eax, dword [esp + 0x50]
push eax
call fcn.0041d1cc
add esp, 4
mov esi, 0xf
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x2c], edi
jb 0x40a6dd
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov edi, 4
lea esi, [esp + 0x2c8]
sub esi, 0x1c
cmp dword [esi], 0x10
jb 0x40a709
mov edx, dword [esi - 0x14]
push edx
call fcn.0041d1cc
add esp, 4
dec edi
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
jns 0x40a6f5
cmp dword [esp + 0x80], 0x10
jb 0x40a4a1
mov eax, dword [esp + 0x6c]
push eax
call fcn.0041d1cc
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.0041c2f8
mov esp, ebp
pop ebp
ret
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x40a816
mov esi, 0x10
cmp dword [esp + 0x64], esi
jb 0x40a77d
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x2c], esi
jb 0x40a7a0
mov edx, dword [esp + 0x18]
push edx
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov edi, 4
lea esi, [esp + 0x2c8]
lea esp, [esp]
sub esi, 0x1c
cmp dword [esi], 0x10
jb 0x40a7d4
mov eax, dword [esi - 0x14]
push eax
call fcn.0041d1cc
add esp, 4
dec edi
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
jns 0x40a7c0
cmp dword [esp + 0x80], 0x10
jb 0x40a4a1
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0041d1cc
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.0041c2f8
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov edi, 0x10
cmp dword [esp + 0x2c], edi
jae 0x40a829
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, 2
push 0x50
mov dword [esp + 0x90], eax
mov word [esp + 0x8c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x8a], ax
push edi
lea eax, [esp + 0x8c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x40a928
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [0x459c03], 1
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [esp + 0x64], edi
jb 0x40a893
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x2c], edi
jb 0x40a8b6
mov edx, dword [esp + 0x18]
push edx
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov edi, 4
lea esi, [esp + 0x2c8]
sub esi, 0x1c
cmp dword [esi], 0x10
jb 0x40a8e6
mov eax, dword [esi - 0x14]
push eax
call fcn.0041d1cc
add esp, 4
dec edi
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
jns 0x40a8d2
cmp dword [esp + 0x80], 0x10
jb 0x40a4a1
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0041d1cc
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.0041c2f8
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x64], edi
jb 0x40a93b
mov edx, dword [esp + 0x50]
push edx
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x2c], edi
jb 0x40a95e
mov eax, dword [esp + 0x18]
push eax
call fcn.0041d1cc
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov edi, 4
lea esi, [esp + 0x2c8]
lea ebx, [ebx]
sub esi, 0x1c
cmp dword [esi], 0x10
jb 0x40a994
mov ecx, dword [esi - 0x14]
push ecx
call fcn.0041d1cc
add esp, 4
dec edi
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
jns 0x40a980
cmp dword [esp + 0x80], 0x10
jb 0x40a9ba
mov edx, dword [esp + 0x6c]
push edx
call fcn.0041d1cc
add esp, 4
mov ecx, dword [esp + 0x3c4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041c2f8
mov esp, ebp
pop ebp
ret