Function at 0x402420
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48dc28
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4b59f4]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x4b59f4]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
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 + 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [0x4cb9f4]
xor ebx, ebx
cmp dword [0x4cb9fc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov byte [edx + 0x34], 1
jne 0x4025d7
lea edi, [ecx + 8]
lea esi, [esp + 0x2c]
mov dword [0x4cb9fc], edi
call fcn.00406600
mov edx, dword [edi]
mov eax, 1
mov dword [esp + 0x40], eax
mov dword [esp + 0xb4], eax
mov eax, dword [0x4b8534]
sub esp, 0x94
mov dword [esp + 0x144], eax
mov eax, dword [0x4cb9fc]
mov edi, esp
mov ecx, 0x25
mov dword [esp + 0xc4], 2
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x14c], 0x112
mov dword [esp + 0x150], 0x12a
mov dword [esp + 0x124], ebx
mov dword [esp + 0xd8], ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0xc]
push eax
call ecx
test eax, eax
jne 0x402556
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov al, 5
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0046fe25
mov esp, ebp
pop ebp
ret 0x2c
mov eax, dword [0x4cb9fc]
mov edx, dword [0x4b8530]
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 0x402583
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov al, 6
jmp 0x402530
mov edx, dword [esp + 0x20]
mov eax, dword [0x4cb9fc]
mov ecx, dword [eax]
push edx
mov edx, dword [0x4b8534]
push 0x49bfc8
push ebx
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jne 0x4025aa
mov al, 7
jmp 0x402530
mov eax, dword [0x4cb9fc]
mov edx, dword [0x4b8534]
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 0x4025cf
mov al, 8
jmp 0x402530
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov ecx, dword [0x4cb9f4]
mov eax, esi
lea edx, [eax + 1]
add ecx, 4
mov dword [esp + 0x14], edx
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4025f0
sub eax, dword [esp + 0x14]
push eax
push esi
call fcn.00406970
mov eax, edi
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402610
sub eax, esi
push eax
push edi
mov ecx, 0x50ca74
call fcn.00406970
mov eax, dword [0x4cb9f4]
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 + 0x20]
push str.localhost
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], edx
call esi
cmp eax, ebx
jne 0x40265c
mov al, 0xa
jmp 0x402530
mov eax, dword [eax]
push eax
call esi
mov esi, eax
cmp esi, ebx
jne 0x40266e
mov al, 0xb
jmp 0x402530
movsx ecx, word [esi + 0xa]
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0xec]
push ecx
call fcn.00470a40
mov eax, dword [0x4cb9f4]
mov edx, dword [esp + 0xf0]
mov dword [eax + 0x220], edx
mov esi, dword [esi]
lea edi, [eax + 0x224]
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4026a8
sub eax, ecx
push eax
push esi
mov ecx, edi
call fcn.00406970
mov dword [esp + 0xdc], 0xf
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
mov dword [esp + 0x100], ebx
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov ecx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ecx
nop
cmp ecx, ebx
je 0x402947
cmp ecx, edi
jne 0x402947
cmp esi, eax
sete al
cmp al, bl
sete al
cmp al, bl
je 0x402784
cmp esi, dword [ecx + 4]
je 0x40277f
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0xd0]
call fcn.004067c0
cmp dword [esp + 0xdc], 0x10
mov cl, byte [esi + 0x10]
mov edx, dword [esp + 0x28]
mov byte [edx], cl
mov ecx, dword [esp + 0xc8]
jae 0x402747
lea ecx, [esp + 0xc8]
mov esi, dword [0x4b8534]
mov eax, dword [0x4cb9fc]
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 0x4027d8
lea ecx, [esp + 0x18]
call fcn.00404e10
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
jmp 0x4026f0
call fcn.00404d10
mov ecx, dword [0x4cb9f4]
mov byte [ecx + 0x34], bl
mov dword [esp + 0x100], 0xffffffff
mov eax, dword [esp + 0xdc]
cmp eax, 0x10
jb 0x4027b8
mov edx, dword [esp + 0xc8]
add eax, 1
push eax
push edx
call fcn.00406020
add esp, 8
mov dword [esp + 0xdc], 0xf
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
mov al, 9
jmp 0x402530
mov eax, dword [0x4cb9fc]
mov edx, dword [0x4b8534]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ecx + 0x3dc], eax
call esi
mov edx, dword [0x4cb9f4]
mov dword [edx + 0xd4], eax
call esi
mov ecx, dword [0x4cb9f4]
push 0xffffffffffffffff
mov dword [ecx + 0x100], eax
push ebx
lea eax, [esp + 0xcc]
mov byte [ecx + 0x158], bl
add ecx, 0x7c
push eax
call fcn.004067c0
mov eax, dword [0x4cb9f4]
mov esi, dword [esp + 0x24]
cmp esi, ebx
mov cx, word [ebp + 0x24]
mov word [eax + 0x98], cx
mov byte [eax + 0x159], bl
je 0x4028fc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4028fc
mov ecx, dword [0x4cb9f4]
mov eax, esi
add ecx, 0x13c
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x402873
sub eax, edi
push eax
push esi
call fcn.00406970
mov eax, dword [0x4cb9f4]
mov edx, dword [ebp + 0x30]
mov dword [0x50ca70], ebx
mov dword [0x50ca90], ebx
mov byte [0x50ca94], bl
mov dword [0x50ca9c], ebx
mov byte [0x50caa0], bl
mov dword [eax + 0x1cc], edx
mov dword [esp + 0x100], 0xffffffff
mov eax, dword [esp + 0xdc]
cmp eax, 0x10
jb 0x4028dc
mov ecx, dword [esp + 0xc8]
add eax, 1
push eax
push ecx
call fcn.00406020
add esp, 8
mov dword [esp + 0xdc], 0xf
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
xor al, al
jmp 0x402530
mov dword [esp + 0x100], 0xffffffff
mov eax, dword [esp + 0xdc]
cmp eax, 0x10
jb 0x402927
mov edx, dword [esp + 0xc8]
add eax, 1
push eax
push edx
call fcn.00406020
add esp, 8
mov dword [esp + 0xdc], 0xf
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
mov al, 0x11
jmp 0x402530
call fcn.00404d90
int3