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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x474860]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp eax, 3
ja 0x4082c1
xor byte [edx], dh
stc
xor byte [edi], dl
das
xor byte [esi], bh
adc al, 0
mov byte [0xbf59dd7d], al
call 0x7ee63a38
cmp ah, byte [eax + 0x2cd0a04c]
add byte [edx + 0x2515c41a], bh
sbb eax, 0xab4cd62a
mov ecx, 0x8b340ebe
push es
mov eax, dword [esi]
mov byte [ebp - 0xd], 0
cmp dword [eax - 0xc], 0
jge 0x4082d2
or edi, 0xffffffff
jmp 0x4082ef
push 0x46cd3c
push eax
call fcn.00449126
mov edi, eax
add esp, 8
test edi, edi
jne 0x4082eb
or edi, 0xffffffff
jmp 0x4082ef
sub edi, dword [esi]
sar edi, 1
call ebx
test eax, eax
jne 0x40830a
out dx, eax
jmp 0x40835c
test edi, edi
js 0x40853a
push edi
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0040c870
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040cc70
mov ecx, eax
call fcn.0040ccf0
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00407420
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408363
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or dl, byte [edx - 0x75]
add edi, edi
push eax
add al, 0xff
rol dword [ebx + 0x517707f8], cl
call ebx
cmp eax, 7
ja 0x4083bb
mov ebx, 0x7b9ff6dd
push eax
invalid
cmp dword [ebp + 0x24], 8
lea ecx, [ebp + 0x10]
cmovae ecx, dword [ebp + 0x10]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4083db
push 0x80004005
call fcn.004079c0
push ecx
push esi
call fcn.00448f1a
add esp, 8
test eax, eax
jne 0x40851c
mov ecx, dword [ebp - 0x14]
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040c840
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040cc70
mov ecx, eax
call fcn.0040ccf0
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 4], 1
jle 0x408423
push dword [ecx - 0xc]
mov ecx, edi
call fcn.004072d0
mov edx, dword [edi]
cmp word [edx], 0
jne 0x40842f
xor ecx, ecx
jmp 0x408443
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408434
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x18]
push edx
call fcn.00402380
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
dec dword [ebp - 0x3074f3be]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408470
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call ebx
cmp eax, 4
ja 0x4084aa
js 0x408459
mov ch, 0xbc
add dword [ebx + 0x6f], edx
xchg ecx, eax
mov ebx, 0x7a1994c0
mov ebp, 0x947eb036
aas
sub bl, byte [ebx - 0x68f64e1f]
pop esp
xor dh, bl
aam 0xf3
invalid
mov byte [ebp - 0xd], 1
call ebx
cmp eax, 9
ja 0x40851f
dec dword [esi]
mov al, 0xcb
sub bl, dh
sbb byte [ebp - 0xfbdf3c9], cl
cmpsd dword [esi], dword es:[edi]
xor byte [edi - 0x44069ed4], dh
inc ebp
ljmp 0x653c
or edi, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40853a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x24], 8
jb 0x40854b
push dword [ebp + 0x10]
call fcn.00447bb4
add esp, 4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20