Function at 0x405158
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], eax
mov eax, 0x48ade8
call fcn.0047d8c0
mov word [ebp - 0x5c], 8
lea eax, [ebp - 4]
call fcn.004013e0
inc dword [ebp - 0x50]
mov word [ebp - 0x5c], 0x14
cmp dword [ebp - 0x74], 0
je 0x4051a0
mov edx, dword [ebp - 0x74]
push edx
call fcn.0047d684
pop ecx
cmp eax, 1
jae 0x405202
mov word [ebp - 0x5c], 0x20
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x74]
call fcn.00487878
inc dword [ebp - 0x50]
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00487a4c
mov eax, dword [ebp - 0xc]
mov edx, 2
mov word [ebp - 0x5c], 0x2c
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x50]
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00487a1c
pop eax
mov word [ebp - 0x5c], 0x20
inc dword [ebp - 0x50]
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x4055cd
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov word [ebp - 0x5c], 0x14
mov eax, dword [ebp - 0x74]
mov edx, eax
mov dword [ebp - 0x88], edx
jmp 0x40524b
mov ecx, dword [ebp - 0x88]
movsx eax, byte [ecx]
push eax
call fcn.00480064
pop ecx
test eax, eax
jne 0x405245
mov edx, dword [ebp - 0x88]
movsx ecx, byte [edx]
cmp ecx, 0x2e
je 0x405245
mov dword [ebp - 0x78], 1
jmp 0x405256
inc dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
cmp byte [eax], 0
jne 0x40521a
cmp dword [ebp - 0x78], 0
jne 0x4052be
mov word [ebp - 0x5c], 0x38
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x74]
call fcn.00487878
inc dword [ebp - 0x50]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00487a4c
mov eax, dword [ebp - 0xc]
mov edx, 2
mov word [ebp - 0x5c], 0x44
push eax
lea eax, [ebp - 0x10]
dec dword [ebp - 0x50]
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00487a1c
pop eax
mov word [ebp - 0x5c], 0x38
inc dword [ebp - 0x50]
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x4055cd
mov ecx, dword [ebp - 0x74]
push ecx
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x80], eax
mov word [ebp - 0x5c], 0x14
cmp dword [ebp - 0x80], 0
jne 0x405338
mov word [ebp - 0x5c], 0x50
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x74]
call fcn.00487878
inc dword [ebp - 0x50]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00487a4c
mov eax, dword [ebp - 0xc]
mov edx, 2
mov word [ebp - 0x5c], 0x5c
push eax
lea eax, [ebp - 0x14]
dec dword [ebp - 0x50]
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00487a1c
pop eax
mov word [ebp - 0x5c], 0x50
inc dword [ebp - 0x50]
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x4055cd
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
lea eax, [ebp - 0x18]
mov ecx, dword [edx]
mov dword [ebp - 0x84], ecx
mov word [ebp - 0x5c], 0x74
mov edx, dword [ebp - 0x84]
and edx, 0xff
call fcn.004879d8
inc dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
mov word [ebp - 0x5c], 0x68
mov word [ebp - 0x5c], 0x80
mov edx, dword [ebp - 0x84]
sar edx, 8
and edx, 0xff
call fcn.004879d8
inc dword [ebp - 0x50]
lea eax, [ebp - 0x20]
mov word [ebp - 0x5c], 0x68
mov word [ebp - 0x5c], 0x8c
mov edx, dword [ebp - 0x84]
sar edx, 0x10
and edx, 0xff
call fcn.004879d8
inc dword [ebp - 0x50]
lea eax, [ebp - 0x24]
mov word [ebp - 0x5c], 0x68
mov word [ebp - 0x5c], 0x98
mov edx, dword [ebp - 0x84]
sar edx, 0x18
and edx, 0xff
call fcn.004879d8
inc dword [ebp - 0x50]
mov word [ebp - 0x5c], 0x68
mov word [ebp - 0x5c], 0xa4
lea eax, [ebp - 0x2c]
call fcn.004013e0
push eax
inc dword [ebp - 0x50]
mov edx, 0x48993e
lea eax, [ebp - 0x28]
call fcn.00487878
inc dword [ebp - 0x50]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x18]
pop ecx
call fcn.00487a74
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
push edx
call fcn.004013e0
mov ecx, eax
inc dword [ebp - 0x50]
lea edx, [ebp - 0x1c]
pop eax
call fcn.00487a74
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x38]
push edx
call fcn.004013e0
push eax
inc dword [ebp - 0x50]
mov edx, 0x489940
lea eax, [ebp - 0x34]
call fcn.00487878
inc dword [ebp - 0x50]
lea edx, [ebp - 0x34]
pop ecx
pop eax
call fcn.00487a74
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
push edx
call fcn.004013e0
mov ecx, eax
inc dword [ebp - 0x50]
lea edx, [ebp - 0x20]
pop eax
call fcn.00487a74
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x44]
push edx
call fcn.004013e0
push eax
inc dword [ebp - 0x50]
mov edx, 0x489942
lea eax, [ebp - 0x40]
call fcn.00487878
inc dword [ebp - 0x50]
lea edx, [ebp - 0x40]
pop ecx
pop eax
call fcn.00487a74
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x48]
push edx
call fcn.004013e0
mov ecx, eax
inc dword [ebp - 0x50]
lea edx, [ebp - 0x24]
pop eax
call fcn.00487a74
lea edx, [ebp - 0x48]
lea eax, [ebp - 4]
call fcn.00487a4c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00487a1c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00487a1c
mov word [ebp - 0x5c], 0x14
mov word [ebp - 0x5c], 0xb0
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00487a4c
mov eax, dword [ebp - 0xc]
mov edx, 2
mov word [ebp - 0x5c], 0xbc
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x50]
call fcn.00487a1c
pop eax
mov word [ebp - 0x5c], 0xb0
inc dword [ebp - 0x50]
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret