Function at 0x49df08
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [0x4b67f8]
xor eax, eax
push ebp
push 0x49e557
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4b6af8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d0]
mov eax, dword [eax + 0x208]
mov edx, dword [eax]
call dword [edx + 0x40]
lea eax, [ebp - 8]
mov edx, 0x49e570
call fcn.00403c94
mov eax, dword [0x4b6af8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d0]
mov eax, dword [eax + 0x208]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x49e06d
push 0x80
lea eax, [ebp - 0x219]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x219]
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [ebp - 0x224]
mov edx, dword [ebx]
call fcn.00403db4
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
mov edx, 0x49e588
call fcn.00403ec8
mov edx, dword [ebp - 0x220]
mov eax, dword [0x4b6af8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d0]
mov eax, dword [eax + 0x208]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov ebx, eax
lea eax, [ebp - 0x22c]
mov edx, ebx
call fcn.00403db4
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov edx, 0x49e598
call fcn.00403ec8
mov edx, dword [ebp - 0x228]
mov eax, dword [0x4b6af8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d0]
mov eax, dword [eax + 0x208]
mov ecx, dword [eax]
call dword [ecx + 0x34]
call sub.wsock32.dll_WSACleanup
mov eax, dword [0x4b6a70]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [0x4b6a70]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [0x4b6a70]
mov byte [eax + 1], 2
mov eax, dword [0x4b6a70]
mov byte [eax], 1
mov eax, dword [0x4b6a70]
mov eax, dword [eax + 8]
test eax, eax
je 0x49e0ab
mov edx, dword [0x4b6a70]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx - 4]
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x475910]
call fcn.00475990
mov ebx, eax
mov eax, dword [0x4b6a70]
mov dword [eax + 8], ebx
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
call fcn.0042f114
mov eax, dword [ebp - 0x230]
push eax
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.0042f114
mov eax, dword [ebp - 0x234]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
call fcn.00495a20
mov edx, eax
mov eax, dword [0x4b6a70]
mov eax, ebx
pop ecx
call fcn.00475a8c
mov eax, dword [ebp - 4]
push eax
push 0x49e75c
mov eax, dword [0x4b6a70]
mov eax, dword [eax + 8]
call fcn.00476a00
mov eax, dword [ebp - 4]
push eax
push fcn.0049e82c
mov eax, dword [0x4b6a70]
mov eax, dword [eax + 8]
call fcn.00476a1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
call fcn.00495a20
mov edx, dword [0x4b6a70]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call fcn.00495a20
mov edx, dword [0x4b6a70]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
call fcn.00495a20
mov edx, dword [0x4b6a70]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x338]
call fcn.00495a20
mov edx, dword [0x4b6a70]
mov dword [edx + 0x1c], eax
mov eax, dword [edi]
xor edx, edx
call fcn.004aeb48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call fcn.00495a20
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
call fcn.00495a20
push eax
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
mov edx, 0x49e5a8
pop ecx
call fcn.0047f540
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x1c]
mov edx, 4
call fcn.0047c310
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x31c]
mov ecx, dword [0x4b6a70]
mov cx, word [ecx + 0x14]
mov edx, dword [0x4b6a70]
mov dx, word [edx + 0x10]
call fcn.0047bc7c
mov eax, dword [0x4b6a70]
mov eax, dword [eax + 0x1c]
cmp eax, 1
je 0x49e26c
mov edx, dword [0x4b6a70]
mov ebx, eax
sub ebx, 2
test ebx, ebx
jl 0x49e26c
inc ebx
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.0047d9e0
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x31c]
xor edx, edx
call fcn.0047af84
dec ebx
jne 0x49e23e
mov eax, dword [0x4b6a70]
mov eax, dword [eax + 0x1c]
mov esi, eax
mov ebx, dword [0x4b6a70]
mov ebx, dword [ebx + 0x18]
dec ebx
mov edx, dword [0x4b6a70]
imul ebx, eax
mov edx, dword [0x4b6a70]
add ebx, eax
dec ebx
sub ebx, esi
jl 0x49e2c5
inc ebx
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.0047d9e0
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x31c]
xor edx, edx
call fcn.0047af84
dec ebx
jne 0x49e297
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.0047f668
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
mov edx, dword [0x4b6a70]
mov edx, dword [edx + 0x18]
call fcn.0047f66c
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.0047d984
mov eax, dword [edi]
call fcn.00447944
shl eax, 4
push eax
mov eax, dword [edi]
call fcn.004ae2e0
pop edx
call fcn.0042e934
mov eax, dword [edi]
call fcn.00447944
shl eax, 4
push eax
mov eax, dword [edi]
call fcn.004ae2e0
pop edx
call fcn.0042e954
mov eax, dword [edi]
call fcn.004ae2e0
push eax
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x38]
pop edx
pop ecx
call fcn.0047eda0
mov eax, dword [edi]
call fcn.004ae2e0
call fcn.004ab6bc
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2d0]
mov ebx, dword [eax + 0x1fc]
sar ebx, 1
jns 0x49e391
adc ebx, 0
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 4]
sar eax, 1
jns 0x49e3ab
adc eax, 0
sub ebx, eax
sub ebx, 0x20
push ebx
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2d0]
pop edx
call fcn.00429a4c
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2d4]
mov ebx, dword [eax + 0x1fc]
sar ebx, 1
jns 0x49e3de
adc ebx, 0
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
sar eax, 1
jns 0x49e3f8
adc eax, 0
sub ebx, eax
sub ebx, 0x20
push ebx
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2d4]
pop edx
call fcn.00429a4c
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
lea edx, [ebp - 0x238]
call fcn.0047f674
mov eax, dword [ebp - 0x238]
push eax
mov eax, dword [edi]
call fcn.004ae2e0
pop edx
call fcn.0042f144
mov eax, dword [edi]
call fcn.004ae2e0
mov edx, dword [eax + 0x2f8]
mov eax, dword [0x4b6868]
mov eax, dword [eax]
call fcn.0049a55c
mov ebx, dword [0x4b6a70]
mov ebx, dword [ebx + 0x18]
dec ebx
test ebx, ebx
jl 0x49e47e
inc ebx
xor esi, esi
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + esi*4 + 0x2fc]
call fcn.00479a18
inc esi
dec ebx
jne 0x49e467
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
mov dl, 1
call fcn.0047f670
mov eax, dword [edi]
call fcn.004ae2e0
mov eax, dword [eax + 0x2f8]
lea edx, [ebp - 0x23c]
call fcn.0047f674
mov eax, dword [ebp - 0x23c]
push eax
mov eax, dword [edi]
call fcn.004ae2e0
pop edx
call fcn.0042f144
mov eax, dword [edi]
call fcn.004ae2e0
add eax, 0x334
push eax
call sub.winmm.dll_timeGetTime
pop edx
mov dword [edx], eax
mov ebx, dword [0x4b6a70]
mov ebx, dword [ebx + 0x18]
dec ebx
test ebx, ebx
jl 0x49e4f8
inc ebx
xor esi, esi
mov eax, dword [edi]
call fcn.004ae2e0
xor edx, edx
mov dword [eax + esi*4 + 0x320], edx
inc esi
dec ebx
jne 0x49e4e4
mov eax, dword [edi]
mov dl, 1
call fcn.004b03b0
mov eax, dword [ebp - 4]
call fcn.0049cc8c
mov eax, dword [ebp - 4]
call fcn.0049e82c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e55e
lea eax, [ebp - 0x23c]
mov edx, 2
call fcn.00403c20
lea eax, [ebp - 0x234]
mov edx, 2
call fcn.00403c20
lea eax, [ebp - 0x22c]
mov edx, 4
call fcn.00403c20
lea eax, [ebp - 8]
call fcn.00403bfc
ret