Function at 0x40d520
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x474600
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x18], ebp
push 8
push str.nReferer
lea eax, [esp + 0xd0]
push eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x88], 2
mov byte [esp + 0x23], bl
call fcn.004028a0
cmp eax, 0xffffffff
je 0x40d61a
mov esi, 0x10
cmp dword [esp + 0xa0], esi
jb 0x40d5ab
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0045850d
add esp, 4
cmp dword [esp + 0xc0], 8
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
jb 0x40d5de
mov edx, dword [esp + 0xac]
push edx
call fcn.0045850d
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], ax
cmp dword [esp + 0xe0], esi
jb 0x40d613
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.0045850d
add esp, 4
mov al, 1
jmp 0x40d93e
push ebx
mov esi, 0xf
push 0x47a966
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00403510
mov byte [esp + 0x7c], 3
push 7
push str.http:__
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00403510
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x8c]
push eax
lea ebx, [esp + 0x40]
lea edi, [esp + 0x5c]
mov byte [esp + 0x84], 4
call fcn.0041b040
add esp, 8
mov edi, 0x10
cmp dword [esp + 0x34], edi
jb 0x40d698
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0045850d
add esp, 4
xor ebx, ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0x7c], 7
cmp dword [esp + 0x50], edi
jb 0x40d6be
mov edx, dword [esp + 0x3c]
push edx
call fcn.0045850d
add esp, 4
cmp dword [ebp + 0xa0], 0
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], 0
jle 0x40d890
add ebp, 0x9c
mov edi, edi
mov eax, dword [ebp]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x40d779
mov eax, dword [esp + 0xa4]
cmp dword [esi + 0x70], eax
jne 0x40d740
mov ecx, dword [esp + 0xc4]
cmp ecx, dword [esi + 0x78]
jne 0x40d740
cmp dword [esp + 0xc0], 8
mov eax, dword [esp + 0xac]
lea ecx, [esi + 0x54]
jae 0x40d721
lea eax, [esp + 0xac]
mov edi, dword [esp + 0xbc]
push eax
mov eax, dword [ecx + 0x14]
call fcn.004033f0
test eax, eax
je 0x40d7e0
mov eax, dword [esp + 0xa4]
cmp eax, 1
je 0x40d74a
cmp eax, 4
jne 0x40d779
cmp dword [esp + 0xc0], 8
mov eax, dword [esp + 0xac]
lea ecx, [esi + 0x54]
jae 0x40d765
lea eax, [esp + 0xac]
mov edi, dword [esp + 0xbc]
push eax
mov eax, dword [ecx + 0x14]
call fcn.004033f0
test eax, eax
je 0x40d78f
mov edx, dword [esp + 0x18]
inc ebx
cmp ebx, dword [edx + 0xa0]
jl 0x40d6e0
jmp 0x40d890
mov byte [esp + 0x17], 1
call fcn.0040a550
push esi
call fcn.0045850d
add esp, 4
test ebx, ebx
jl 0x40d890
mov eax, dword [ebp + 4]
cmp ebx, eax
jge 0x40d890
dec eax
cmp ebx, eax
mov dword [ebp + 4], eax
jge 0x40d890
mov ecx, dword [ebp]
sub eax, ebx
add eax, eax
lea ecx, [ecx + ebx*4]
add eax, eax
push eax
lea edx, [ecx + 4]
push edx
push ecx
call fcn.0045d440
add esp, 0xc
jmp 0x40d890
push 8
push str.nReferer
lea eax, [esp + 0xd0]
push eax
xor eax, eax
call fcn.004028a0
cmp eax, 0xffffffff
je 0x40d802
mov byte [esp + 0x17], 1
jmp 0x40d87c
cmp dword [esi + 0x78], 1
jne 0x40d867
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
ja 0x40d81f
mov byte [esp + 0x17], 1
jmp 0x40d890
mov eax, esi
call fcn.0040a530
test ebx, ebx
jl 0x40d833
mov ecx, ebx
mov edx, ebp
call fcn.0041aa40
lea ecx, [esp + 0x54]
call fcn.00403a30
lea ecx, [esp + 0x88]
call fcn.00403a30
lea esi, [esp + 0xa8]
call fcn.00427c20
lea ecx, [esp + 0xc8]
call fcn.00403a30
xor al, al
jmp 0x40d93e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x74]
cmp eax, 0x927c0
jbe 0x40d818
mov byte [esp + 0x17], 0
mov eax, esi
call fcn.0040a530
test ebx, ebx
jl 0x40d890
mov ecx, ebx
mov edx, ebp
call fcn.0041aa40
mov ebx, 0x10
cmp dword [esp + 0x6c], ebx
jb 0x40d8a8
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0045850d
add esp, 4
xor esi, esi
mov edi, 0xf
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], esi
mov byte [esp + 0x58], 0
cmp dword [esp + 0xa0], ebx
jb 0x40d8d5
mov edx, dword [esp + 0x8c]
push edx
call fcn.0045850d
add esp, 4
cmp dword [esp + 0xc0], 8
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], esi
mov byte [esp + 0x8c], 0
jb 0x40d905
mov eax, dword [esp + 0xac]
push eax
call fcn.0045850d
add esp, 4
xor ecx, ecx
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], esi
mov word [esp + 0xac], cx
cmp dword [esp + 0xe0], ebx
jb 0x40d93a
mov edx, dword [esp + 0xcc]
push edx
call fcn.0045850d
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004584fe
add esp, 0x6c
ret 0x60