Function at 0x4024d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4afc4b
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], edx
mov edx, dword [0x4f7270]
xor ebx, ebx
cmp dword [0x4f7278], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
mov byte [edx + 0x34], 1
jne 0x402689
lea edi, [ecx + 8]
lea esi, [esp + 0x5c]
mov dword [0x4f7278], edi
call fcn.00406960
mov edx, dword [edi]
mov eax, 1
mov dword [esp + 0x70], eax
mov dword [esp + 0xe4], eax
mov eax, dword [0x4e276c]
mov ecx, 2
mov dword [esp + 0x60], ecx
mov byte [esp + 0x5c], cl
sub esp, 0x114
mov dword [esp + 0x1f4], eax
mov eax, dword [0x4f7278]
mov edi, esp
mov ecx, 0x45
mov dword [esp + 0x180], ebx
mov dword [esp + 0x1fc], 0x112
mov dword [esp + 0x200], 0x12a
mov dword [esp + 0x1d4], ebx
mov dword [esp + 0x188], ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0xc]
push eax
call ecx
test eax, eax
jne 0x402608
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov al, 5
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0047e4dd
mov esp, ebp
pop ebp
ret 0x2c
mov eax, dword [0x4f7278]
mov edx, dword [0x4e2768]
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push ebx
push 1
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
jne 0x402635
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov al, 6
jmp 0x4025e2
mov edx, dword [esp + 0x24]
mov eax, dword [0x4f7278]
mov ecx, dword [eax]
push edx
mov edx, dword [0x4e276c]
push 0x4c5040
push ebx
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jne 0x40265c
mov al, 7
jmp 0x4025e2
mov eax, dword [0x4f7278]
mov edx, dword [0x4e276c]
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push ebx
push 1
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
jne 0x402681
mov al, 8
jmp 0x4025e2
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov ecx, dword [0x4f7270]
mov eax, esi
lea edx, [eax + 1]
add ecx, 4
mov dword [esp + 0x18], edx
jmp 0x4026a0
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4026a0
sub eax, dword [esp + 0x18]
push eax
push esi
call fcn.00406230
mov eax, edi
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4026c0
sub eax, esi
push eax
push edi
mov ecx, 0x5382f4
call fcn.00406230
mov eax, dword [0x4f7270]
mov cl, byte [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov esi, dword [sym.imp.WS2_32.dll_gethostbyname]
mov byte [eax], cl
mov ecx, dword [ebp + 8]
mov dword [eax + 0x20], edx
mov edx, dword [esp + 0x24]
push str.localhost
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], edx
call esi
cmp eax, ebx
jne 0x40270c
mov al, 0xa
jmp 0x4025e2
mov eax, dword [eax]
push eax
call esi
mov esi, eax
cmp esi, ebx
jne 0x40271e
mov al, 0xb
jmp 0x4025e2
movsx ecx, word [esi + 0xa]
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.0047f430
mov eax, dword [0x4f7270]
mov edx, dword [esp + 0x5c]
mov dword [eax + 0x238], edx
mov esi, dword [esi]
lea edi, [eax + 0x23c]
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x402752
sub eax, ecx
push eax
push esi
mov ecx, edi
call fcn.00406230
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x188], ebx
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov ecx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ecx
cmp ecx, ebx
je 0x4029a8
cmp ecx, edi
jne 0x4029a8
cmp esi, eax
sete al
cmp al, bl
sete al
cmp al, bl
je 0x402815
cmp esi, dword [ecx + 4]
je 0x402810
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x3c]
call fcn.00406300
cmp dword [esp + 0x48], 0x10
mov cl, byte [esi + 0x10]
mov edx, dword [esp + 0x2c]
mov byte [edx], cl
mov ecx, dword [esp + 0x34]
jae 0x4027db
lea ecx, [esp + 0x34]
mov esi, dword [0x4e276c]
mov eax, dword [0x4f7278]
mov edx, dword [eax]
push ebx
push esi
mov esi, dword [ebp + 0x24]
push ebx
push esi
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
cmp eax, ebx
jne 0x40285a
lea ecx, [esp + 0x1c]
call fcn.00404f00
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
jmp 0x402790
call fcn.00404e00
mov ecx, dword [0x4f7270]
mov byte [ecx + 0x34], bl
mov dword [esp + 0x188], 0xffffffff
mov eax, dword [esp + 0x48]
cmp eax, 0x10
jb 0x402843
mov edx, dword [esp + 0x34]
add eax, 1
push eax
push edx
call fcn.00406140
add esp, 8
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov al, 9
jmp 0x4025e2
mov eax, dword [0x4f7278]
mov edx, dword [0x4e276c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ecx + 0x4e8], eax
call esi
mov edx, dword [0x4f7270]
mov dword [edx + 0xd4], eax
call esi
mov ecx, dword [0x4f7270]
push 0xffffffffffffffff
mov dword [ecx + 0x11c], eax
push ebx
lea eax, [esp + 0x38]
mov byte [ecx + 0x174], bl
add ecx, 0x7c
push eax
call fcn.00406300
mov eax, dword [0x4f7270]
mov esi, dword [esp + 0x28]
cmp esi, ebx
mov cx, word [ebp + 0x24]
mov word [eax + 0x98], cx
mov byte [eax + 0x175], bl
je 0x40296c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40296c
mov ecx, dword [0x4f7270]
mov eax, esi
add ecx, 0x158
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4028f2
sub eax, edi
push eax
push esi
call fcn.00406230
mov eax, dword [0x4f7270]
mov edx, dword [ebp + 0x30]
mov dword [0x5382f0], ebx
mov dword [0x538310], ebx
mov byte [0x538314], bl
mov dword [0x53831c], ebx
mov byte [0x538320], bl
mov dword [eax + 0x1e8], edx
mov dword [esp + 0x188], 0xffffffff
mov eax, dword [esp + 0x48]
cmp eax, 0x10
jb 0x402955
mov ecx, dword [esp + 0x34]
add eax, 1
push eax
push ecx
call fcn.00406140
add esp, 8
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
xor al, al
jmp 0x4025e2
mov dword [esp + 0x188], 0xffffffff
mov eax, dword [esp + 0x48]
cmp eax, 0x10
jb 0x402991
mov edx, dword [esp + 0x34]
add eax, 1
push eax
push edx
call fcn.00406140
add esp, 8
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov al, 0x11
jmp 0x4025e2
call fcn.00404e80
int3