Function at 0x543990
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x790a03
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x856918]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
xor ebx, ebx
push 0x100
mov dword [ebp - 4], ebx
call fcn.005645f4
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x5439ea
push 1
call fcn.005423d0
mov esi, eax
jmp 0x5439ec
xor esi, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x28]
mov edx, dword [eax]
lea ecx, [edi + 0x28]
push esi
mov byte [ebp - 4], 2
call edx
cmp eax, ebx
jne 0x543abc
push 0x1a
mov edi, 0xf
push str.Failed_to_socksify_socket_
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], 0
call fcn.00405920
push 9
push str.TestProxy
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], 0
call fcn.00405920
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x38]
push edx
mov byte [ebp - 4], 4
call eax
mov ebx, 0x10
cmp dword [ebp - 0x20], ebx
jb 0x543a6d
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00564155
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp dword [ebp - 0x3c], ebx
jb 0x543a8c
mov edx, dword [ebp - 0x50]
push edx
call fcn.00564155
add esp, 4
mov byte [ebp - 4], 0
test esi, esi
je 0x543aa6
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea ecx, [ecx + esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x543acc
push eax
lea ecx, [esi + 0x30]
call fcn.00523970
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
cmp eax, ebx
jne 0x543b76
push 0x18
mov edi, 0xf
push str.Failed_to_create_socket_
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], 0
call fcn.00405920
push 9
push str.TestProxy
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], 0
call fcn.00405920
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 6
call edx
mov ebx, 0x10
cmp dword [ebp - 0x20], ebx
jb 0x543b44
mov eax, dword [ebp - 0x34]
push eax
call fcn.00564155
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp dword [ebp - 0x3c], ebx
jb 0x543b63
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.00564155
add esp, 4
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
mov byte [ebp - 4], 0
lea ecx, [eax + esi + 4]
jmp 0x543a9e
push 0x2ee0
mov ecx, esi
call fcn.0051d4c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x80]
push 0
push 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push edi
push eax
mov ecx, esi
call edx
test eax, eax
jne 0x543bd1
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xa4], 0
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + esi + 4]
lea ecx, [edx + esi + 4]
mov edx, dword [eax]
push 1
mov byte [ebp - 4], 0
call edx
jmp 0x543aa6
cmp di, 0x19
jne 0x543c93
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0x10]
lea ecx, [esi + 0x30]
call edx
test eax, eax
jne 0x543c36
push str.Failed_to_reblock_socket_
lea ecx, [ebp - 0x38]
call fcn.004062df
push str.TestProxy
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.004062df
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x54]
push edx
mov ecx, edi
mov byte [ebp - 4], 8
call eax
lea ecx, [ebp - 0x54]
call fcn.00402ed7
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00402ed7
jmp 0x543c96
mov edx, dword [esi]
mov edx, dword [edx + 4]
push 3
lea eax, [ebp + 0x10]
push eax
mov ecx, esi
call edx
mov byte [ebp + 0x13], 0
cmp eax, 3
jne 0x543c7f
mov ecx, 0x7bfcc0
lea eax, [ebp + 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x543c76
test dl, dl
je 0x543c72
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x543c76
add eax, 2
add ecx, 2
test dl, dl
jne 0x543c56
xor eax, eax
jmp 0x543c7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x543c93
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xa4], 0
mov ebx, 1
jmp 0x543ca5
mov edi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
mov dword [edi + 0xa4], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
mov dword [ebp - 0x1c], 0
call eax
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x30]
call eax
xor eax, eax
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc