Function at 0x41f15d
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d4
mov eax, dword [0x492840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
push 0x190
mov dword [ebp - 0x3c4], eax
lea eax, [ebp - 0x3c0]
push ebx
push eax
call fcn.0043dc10
mov edi, 0x104
lea eax, [ebp - 0x11c]
push edi
push ebx
push eax
call fcn.0043dc10
push edi
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.0043dc10
xor eax, eax
mov dword [ebp - 0x3c8], ebx
lea edi, [ebp - 0x230]
add esp, 0x24
cmp dword [ebp + 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x104
cmovge edi, dword [ebp + 0x10]
mov dword [ebp - 0x3d0], edi
cmp dword [ebp - 0x3c4], ebx
je 0x41f45a
test esi, esi
je 0x41f45a
test edi, edi
jle 0x41f45a
call fcn.00438ea7
push 0x102
push dword [ebp - 0x3c4]
mov dword [ebp - 0x3d4], eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x220]
push eax
call fcn.0042d010
lea eax, [ebp - 0x3c8]
push eax
lea eax, [ebp - 0x11c]
push 0x465c28
push eax
call fcn.0042e787
add esp, 0x1c
mov dword [ebp - 0x3cc], eax
test eax, eax
je 0x41f265
lea eax, [ebp - 0x3c8]
push eax
push 0x465c28
push ebx
call fcn.0042e787
add esp, 0xc
mov dword [ebp - 0x3cc], eax
push eax
call fcn.0042da83
pop ecx
test eax, eax
jne 0x41f299
push 0x104
push dword [ebp - 0x3cc]
lea eax, [ebp - 0x220]
push eax
call fcn.0042ee2a
push ebx
lea eax, [ebp - 0x220]
push 0x3a
push eax
call fcn.0042d915
add esp, 0x18
push 0x57b288
call fcn.0042da83
pop ecx
test eax, eax
jne 0x41f2ef
lea eax, [ebp - 0x11c]
push 0x57b180
push eax
call fcn.004475c7
pop ecx
pop ecx
test eax, eax
jne 0x41f2ef
push 0x104
lea eax, [ebp - 0x11c]
push 0x57b288
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x3c4]
push str.:2:ResolveHostNameToIP___s___is_using___s__instead_
call fcn.0040953d
add esp, 0x18
lea eax, [ebp - 0x11c]
mov byte [esi], bl
push eax
call fcn.0041bfbe
pop ecx
test eax, eax
je 0x41f334
lea eax, [ebp - 0x11c]
push eax
call fcn.004203f5
push edi
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.0042ee2a
push edi
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.0042ed96
add esp, 0x1c
mov eax, esi
jmp 0x41f45c
lea eax, [ebp - 0x3c0]
mov byte [esi], bl
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x41f45a
lea eax, [ebp - 0x11c]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ecx, eax
test ecx, ecx
je 0x41f455
movzx edx, word [ecx + 0xa]
test dx, dx
jle 0x41f455
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movsx eax, dx
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x22c]
push eax
call fcn.0043d690
lea eax, [ebp - 0x18]
mov byte [esi], bl
push eax
push dword [ebp - 0x22c]
call fcn.0041bf1f
mov edi, dword [ebp - 0x3d0]
lea eax, [ebp - 0x18]
push edi
push eax
push esi
call fcn.0042ee2a
push esi
call fcn.0041bfbe
add esp, 0x24
test eax, eax
jne 0x41f3f7
movzx eax, byte [ebp - 0x229]
push esi
push eax
movzx eax, byte [ebp - 0x22a]
push eax
movzx eax, byte [ebp - 0x22b]
push eax
movzx eax, byte [ebp - 0x22c]
push eax
push dword [ebp - 0x3c4]
push str.:9:ResolveHostNameToIP__s__FAILED:_IP_InAddrToA__d._d._d._d__parsed_to__s
call fcn.0040906e
add esp, 0x1c
or ebx, 0xffffffff
call sub.WSOCK32.dll_WSACleanup
test ebx, ebx
jne 0x41f45a
push esi
call fcn.004476a0
pop ecx
test eax, eax
je 0x41f45a
push edi
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.0042ed96
add esp, 0xc
call fcn.00438ea7
mov edi, dword [ebp - 0x3d4]
sub eax, edi
cmp eax, 0xfa0
jbe 0x41f32d
call fcn.00438ea7
sub eax, edi
push eax
push esi
push dword [ebp - 0x3c4]
push str.:4:ResolveHostNameToIP___took_too_long_to_resolve__s_to__s:__ums
call fcn.0040906e
add esp, 0x10
jmp 0x41f32d
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret