Function at 0x4a6854
Capabilities:
Check for time delay via gettickcount
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 0x40], 0
mov ecx, 0x36ee80
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
mov esi, dword [edi]
mov eax, dword [esi + 0x19c]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov ebx, dword [edi + eax*4 + 0x130]
xor eax, eax
and dword [ebp - 0x24], eax
and dword [edi + 0x1f4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x1d0], 0
jne 0x4a6a90
movzx eax, word [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 0x40cea0
push esi
call fcn.00492971
mov eax, dword [esi + 0xd4]
add esp, 0x10
test eax, eax
je 0x4a68e6
push eax
call fcn.004b1931
and dword [esi + 0xd4], 0
pop ecx
call fcn.00498b5e
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x4a6fe2
movzx eax, word [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 0x40cec8
call fcn.0048886c
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4a6ff0
push 1
push eax
push 0x40ced0
push edi
call fcn.00499348
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4a6a64
cmp dword [edi + 0x114], 1
mov eax, 0x415cd1
mov ebx, eax
mov dword [ebp - 0x20], eax
mov ecx, 0x409eac
mov dword [ebp - 0x1c], ebx
mov eax, 0x409eb0
cmovne eax, ecx
push 0x409bd8
push esi
mov dword [ebp - 8], eax
call fcn.00498f7b
pop ecx
pop ecx
test eax, eax
jne 0x4a6984
push dword [ebp - 0x30]
push 0x40ced8
call fcn.0048886c
mov ebx, eax
mov dword [ebp - 0x1c], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x4a6fd0
push 0x409ec8
push esi
call fcn.00498f7b
test eax, eax
mov ecx, 0x409edc
mov eax, 0x415cd1
cmovne ecx, eax
push 0x409ca0
push esi
mov dword [ebp - 0xc], ecx
call fcn.00498f7b
add esp, 0x10
test eax, eax
jne 0x4a69c4
cmp dword [esi + 0x3a0], eax
je 0x4a69c4
mov eax, dword [edi + 0x228]
mov dword [ebp - 0x20], eax
push dword [ebp - 0xc]
mov eax, dword [edi + 0x224]
mov ecx, 0x415cd1
push dword [ebp - 0x20]
test eax, eax
cmovne ecx, eax
movzx eax, word [ebp + 0x14]
push ecx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp + 0x10]
push 0x40cee4
push dword [ebp + 8]
call fcn.00498d08
mov ebx, eax
add esp, 0x24
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a6a0c
cmp byte [eax], 0
je 0x4a6a0c
push eax
call fcn.004b1931
pop ecx
test ebx, ebx
jne 0x4a6a4f
push dword [ebp + 8]
push edi
call fcn.00498d69
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4a6a4f
push 0x416124
push dword [ebp + 8]
call fcn.00498d08
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4a6a4f
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x86a4]
push eax
push edi
push dword [ebp + 8]
call fcn.00498b6b
add esp, 0x14
mov ebx, eax
and dword [ebp + 8], 0
test ebx, ebx
je 0x4a6a64
push 0x40cf08
push esi
call fcn.004928db
pop ecx
pop ecx
push dword [ebp - 0x30]
call fcn.004b1931
mov eax, dword [ebp + 8]
pop ecx
test eax, eax
je 0x4a6a7b
push eax
call fcn.004b1931
pop ecx
test ebx, ebx
jne 0x4a6fe9
mov ebx, dword [ebp - 0x2c]
mov dword [edi + 0x1d0], 1
push dword [edi + 0x124]
push dword [edi + 0x120]
call fcn.0049453c
push edx
push eax
call fcn.004944e6
mov ecx, dword [ebp - 0x38]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x4a7090
cmp dword [esi + 0x520], 2
jne 0x4a6ad6
push 0
push 0xffffffffffffffff
push ebx
call fcn.0049b8c4
add esp, 0xc
test eax, eax
je 0x4a708c
and dword [edi + 0x1d0], 0
lea eax, [esi + 0x53c]
and dword [ebp - 0x20], 0
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0xc], eax
inc ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4a6e62
cmp dword [ebp - 0x24], 0
jne 0x4a709d
push dword [edi + 0x124]
push dword [edi + 0x120]
call fcn.0049453c
push edx
push eax
call fcn.004944e6
mov ecx, dword [ebp - 0x38]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x4a6f97
mov edx, 0x3e8
cmp ecx, edx
mov eax, edx
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.0049b8c4
add esp, 0xc
cmp eax, 0xffffffff
je 0x4a6f8d
test eax, eax
je 0x4a6e46
lea eax, [ebp - 0x18]
push eax
mov eax, 0x4000
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
push edi
call fcn.004929e6
add esp, 0x14
cmp eax, 0x51
je 0x4a6e55
test eax, eax
je 0x4a6b90
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x4a6e46
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jg 0x4a6bd2
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x118], ebx
je 0x4a6bba
cmp dword [esi + 0x85dc], ebx
je 0x4a6bba
xor eax, eax
inc eax
mov dword [edi + 0x1f4], eax
jmp 0x4a6e46
push 0x40cf80
xor eax, eax
inc eax
push esi
mov dword [ebp - 0x24], eax
call fcn.004928db
pop ecx
pop ecx
jmp 0x4a6e46
add dword [ebp - 0x20], ecx
xor eax, eax
inc eax
cmp ebx, eax
jle 0x4a6c63
mov eax, dword [ebp - 0x10]
lea edx, [esi + 0x53c]
and dword [ebp - 0x20], 0
or eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
je 0x4a6c23
mov eax, ecx
mov ecx, dword [ebp - 0x10]
cdq
sub ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
sbb eax, edx
mov dword [ebp - 0x14], eax
test eax, eax
jg 0x4a6e46
jl 0x4a6b86
test ecx, ecx
jne 0x4a6e46
jmp 0x4a6b86
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push ecx
push edx
push edi
call fcn.0049718e
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a6c4d
push 0x40cf98
push esi
call fcn.00492971
pop ecx
pop ecx
jmp 0x4a6b86
push dword [ebp + 8]
push 0x40cfac
push esi
call fcn.00492971
add esp, 0xc
jmp 0x4a6e46
xor ebx, ebx
mov dword [ebp - 0x30], ebx
test ecx, ecx
jle 0x4a6e43
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
inc edx
cmp byte [eax], 0xa
mov dword [ebp - 0x1c], edx
jne 0x4a6e33
cmp dword [esi + 0x2e4], 0
je 0x4a6ca1
push edi
push edx
push dword [ebp - 4]
xor eax, eax
inc eax
push eax
push esi
call fcn.00492805
mov edx, dword [ebp - 0x1c]
add esp, 0x14
cmp dword [esi + 0x2c8], 0
push 2
pop eax
push 3
pop ecx
push edx
push dword [ebp - 4]
cmovne eax, ecx
push eax
push edi
call fcn.004926ce
add esp, 0x10
test eax, eax
jne 0x4a70a0
mov ecx, dword [ebp - 4]
mov al, byte [ecx]
cmp al, 0xd
je 0x4a6ea3
cmp al, 0xa
je 0x4a6ea3
mov edx, dword [ebp - 0x1c]
push 0x11
push ecx
push 0x40a324
mov al, byte [edx + ecx]
mov byte [ebp + 0xb], al
mov byte [edx + ecx], 0
call fcn.004941f6
add esp, 0xc
test eax, eax
je 0x4a6d0a
mov eax, dword [esi + 0x90]
cmp eax, 0x191
je 0x4a6d2d
push 0x13
push dword [ebp - 4]
push 0x40a338
call fcn.004941f6
add esp, 0xc
test eax, eax
je 0x4a6d47
mov eax, dword [esi + 0x90]
cmp eax, 0x197
jne 0x4a6d47
push dword [ebp - 4]
push eax
push edi
call fcn.00499210
add esp, 0xc
test eax, eax
jne 0x4a70a0
jmp 0x4a6e15
push 0xf
push dword [ebp - 4]
push 0x409f88
call fcn.004941f6
add esp, 0xc
test eax, eax
je 0x4a6d7b
mov eax, dword [ebp - 4]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.004bc7ad
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
jmp 0x4a6e15
push 0x40a26c
push 0x40a29c
push dword [ebp - 4]
call fcn.00498fbd
add esp, 0xc
test eax, eax
jne 0x4a6de2
push 0x409d10
push 0x409cfc
push dword [ebp - 4]
call fcn.00498fbd
add esp, 0xc
test eax, eax
je 0x4a6dc9
push 0x40d010
push esi
call fcn.00492971
xor eax, eax
inc eax
push edi
mov dword [ebp - 0x3c], eax
call fcn.00497177
add esp, 0xc
jmp 0x4a6e15
push 0x40a26c
push 0x409ec8
push dword [ebp - 4]
call fcn.00498fbd
add esp, 0xc
test eax, eax
je 0x4a6dea
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
jmp 0x4a6e15
lea ebx, [esi + 0x90]
push ebx
lea eax, [ebp - 0x40]
push eax
push 0x40d02c
push dword [ebp - 4]
call fcn.0048aa93
add esp, 0x10
cmp eax, 2
jne 0x4a6e12
mov eax, dword [ebx]
mov dword [esi + 0x8690], eax
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov al, byte [ebp + 0xb]
mov byte [edx + ecx], al
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
inc eax
inc ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], ebx
cmp ebx, ecx
jl 0x4a6c76
mov ebx, dword [ebp - 8]
push edi
call fcn.0049abc7
pop ecx
test eax, eax
jne 0x4a6ff8
cmp dword [ebp - 0x20], 0x4000
jb 0x4a6af8
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4a709d
cmp dword [esi + 0x8690], 0xc8
je 0x4a6faf
push edi
call fcn.00499060
pop ecx
test eax, eax
jne 0x4a70a0
cmp dword [edi + 0x198], eax
mov ebx, dword [ebp - 0x28]
push 1
pop eax
cmovne ebx, eax
mov dword [ebp - 0x28], ebx
jmp 0x4a6fb2
and dword [ebp - 0x20], 0
lea eax, [esi + 0x53c]
cmp dword [esi + 0x90], 0x197
mov dword [ebp - 0xc], eax
jne 0x4a6b86
cmp dword [esi + 0x85ec], 0
jne 0x4a6b86
mov ecx, dword [ebp - 0x10]
mov eax, ecx
mov edx, dword [ebp - 0x14]
or eax, edx
mov dword [ebp - 8], 2
je 0x4a6f21
push edx
push ecx
push 0x40cfd0
push esi
call fcn.00492971
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x10]
sub eax, ebx
cdq
sub ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
sbb eax, edx
mov dword [ebp - 0x14], eax
test eax, eax
jg 0x4a6e43
jl 0x4a6b86
test ecx, ecx
jne 0x4a6e43
jmp 0x4a6b86
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4a6b86
xor eax, eax
inc eax
mov dword [esi + 0xc8], eax
mov eax, dword [ebp - 0x18]
sub eax, ebx
push eax
push 0x40cff4
push esi
call fcn.00492971
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
cmp byte [eax], 0xa
jne 0x4a6f56
mov dword [ebp - 4], eax
inc ebx
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
sub eax, ebx
push eax
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
call fcn.0049718e
add esp, 0x10
cmp eax, 0xffffffff
je 0x4a6c3b
push dword [ebp - 0x18]
push 0x40cfac
push esi
call fcn.00492971
add esp, 0xc
jmp 0x4a6e43
push 0x40cf50
jmp 0x4a6bbf
push 0x40cf28
push esi
call fcn.004928db
pop ecx
pop ecx
push 2
pop eax
mov dword [ebp - 0x24], eax
jmp 0x4a6e65
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4a6fbf
cmp dword [esi + 0xd4], 0
jne 0x4a6fff
cmp dword [esi + 0xd4], 0
je 0x4a701c
mov ebx, dword [ebp - 0x2c]
jmp 0x4a68ab
push dword [ebp + 8]
call fcn.004b1931
push dword [ebp - 0x30]
call fcn.004b1931
pop ecx
pop ecx
push 0x1b
jmp 0x4a709f
mov eax, ebx
jmp 0x4a70a0
push ebx
call fcn.004b1931
jmp 0x4a6fe1
push 0x2a
jmp 0x4a709f
mov eax, dword [ebp + 0xc]
push dword [edi + eax*4 + 0x130]
push edi
call fcn.00492dfa
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
or dword [edi + eax*4 + 0x130], 0xffffffff
mov eax, dword [esi + 0x90]
cmp eax, 0xc8
je 0x4a7050
push eax
push 0x40d03c
push esi
call fcn.004928db
add esp, 0xc
test ebx, ebx
je 0x4a709d
cmp dword [esi + 0xd4], 0
je 0x4a709d
xor eax, eax
inc eax
mov dword [edi + 0x1f4], eax
jmp 0x4a709d
mov eax, dword [edi + 0x224]
test eax, eax
je 0x4a7068
push eax
call fcn.004b1931
and dword [edi + 0x224], 0
pop ecx
and dword [edi + 0x224], 0
xor eax, eax
inc eax
push 0x40d06c
push esi
mov dword [esi + 0x85e0], eax
call fcn.00492971
and dword [esi + 0xc8], 0
pop ecx
pop ecx
xor eax, eax
jmp 0x4a70a0
push 0x40cf28
push esi
call fcn.004928db
pop ecx
pop ecx
push 0x38
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret