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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b2af
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], ecx
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x260], ecx
cmp dword [ebp - 0x260], 1
je 0x5172d8
cmp dword [ebp - 0x260], 2
je 0x517455
cmp dword [ebp - 0x260], 3
je 0x5175a5
jmp 0x51769b
push 0xd
call dword [sym.imp.Dump.dll_if_dump]
add esp, 4
test eax, eax
je 0x517406
mov edx, dword [ebp - 0x25c]
mov ecx, dword [edx + 0x14]
call fcn.004ec1e0
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 0x14]
call fcn.004ec1a0
movzx ecx, word [eax + 2]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x246], ax
mov edx, dword [ebp - 0x25c]
mov ecx, dword [edx + 0x14]
call fcn.004ec1a0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00402a30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xf4]
push edx
call fcn.0051f500
add esp, 8
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 1
push str.Traversal_session_startremote_address:__1_:_2_session_id:__3_
lea ecx, [ebp - 0xbc]
call fcn.0040e500
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x270], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x246]
push eax
mov ecx, dword [ebp - 0x268]
push ecx
mov ecx, dword [ebp - 0x270]
call fcn.0040e820
mov ecx, eax
call fcn.004286e0
mov ecx, eax
call fcn.0040e7c0
push eax
push 0xd
call dword [sym.imp.Dump.dll_dump]
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.0040c9f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.00402c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.00402ab0
xor edx, edx
jne 0x5172d8
mov eax, dword [ebp - 0x25c]
mov dword [eax + 4], 2
mov ecx, dword [ebp - 0x25c]
mov ecx, dword [ecx + 0x14]
call fcn.004ec1c0
mov ecx, eax
call fcn.004f2fd0
cmp eax, 1
jne 0x517445
push 1
mov edx, dword [ebp - 0x25c]
mov ecx, dword [edx + 0x14]
call fcn.004ec850
mov ecx, dword [ebp - 0x25c]
call fcn.004eb520
jmp 0x51769b
mov ecx, dword [ebp - 0x25c]
call fcn.004eb500
movzx eax, al
test eax, eax
jne 0x5174cc
mov ecx, dword [ebp - 0x25c]
call fcn.004eb4d0
movzx ecx, al
test ecx, ecx
je 0x5174cc
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 8]
add eax, 1
mov ecx, dword [ebp - 0x25c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x25c]
mov ecx, dword [edx + 0x14]
call fcn.004ec1c0
mov ecx, eax
call fcn.004f2fd0
cmp eax, 1
jne 0x5174b8
push 1
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 0x14]
call fcn.004ec850
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x25c]
mov dword [ecx + 0xc], eax
jmp 0x5175a0
mov ecx, dword [ebp - 0x25c]
call fcn.004eb500
movzx edx, al
test edx, edx
je 0x5175a0
mov eax, dword [ebp - 0x25c]
mov dword [eax + 4], 5
push 0xd
call dword [sym.imp.Dump.dll_if_dump]
add esp, 4
test eax, eax
je 0x517598
mov ecx, dword [ebp - 0x25c]
mov ecx, dword [ecx + 0x14]
call fcn.004ec1e0
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], 2
push 0x541290
lea ecx, [ebp - 0x19c]
call fcn.0040e500
mov dword [ebp - 0x274], eax
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x278], edx
mov dword [ebp - 4], 3
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x25c]
add edx, 0x10
push edx
mov ecx, dword [ebp - 0x278]
call fcn.0040e7e0
mov ecx, eax
call fcn.0045a720
mov ecx, eax
call fcn.0040e7c0
push eax
push 0xd
call dword [sym.imp.Dump.dll_dump]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x19c]
call fcn.0040c9f0
xor eax, eax
jne 0x5174ef
jmp 0x51769b
mov ecx, dword [ebp - 0x25c]
call fcn.004eb500
movzx ecx, al
test ecx, ecx
jne 0x517602
mov ecx, dword [ebp - 0x25c]
call fcn.004eb4a0
movzx edx, al
test edx, edx
je 0x517602
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [ebp - 0x25c]
mov dword [edx + 8], ecx
push 2
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 0x14]
call fcn.004ec850
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x25c]
mov dword [ecx + 0xc], eax
jmp 0x51769b
mov ecx, dword [ebp - 0x25c]
call fcn.004eb500
movzx edx, al
test edx, edx
je 0x51769b
mov eax, dword [ebp - 0x25c]
mov dword [eax + 4], 4
push 0xd
call dword [sym.imp.Dump.dll_if_dump]
add esp, 4
test eax, eax
je 0x517697
mov dword [ebp - 0x258], 3
push str.Traversal_session_timeout__session_succeed_and_status_is__1_
lea ecx, [ebp - 0x244]
call fcn.0040e500
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
mov dword [ebp - 0x280], ecx
mov dword [ebp - 4], 4
lea edx, [ebp - 0x258]
push edx
mov ecx, dword [ebp - 0x280]
call fcn.0045a720
push eax
push 0xd
call dword [sym.imp.Dump.dll_dump]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0040c9f0
xor eax, eax
jne 0x517625
mov ecx, dword [ebp - 0x25c]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret