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

Disassembly:
sub esp, 0x58
mov eax, dword [0x4fc444]
mov dword [esp + 0x24], eax
mov al, byte [0x4fc3ef]
or al, byte [0x4fc3ee]
push ebp
mov ebp, edx
mov byte [esp + 9], al
mov dword [esp + 0x18], ebp
jne 0x411e71
xor dl, dl
xor cl, cl
pop ebp
add esp, 0x58
jmp fcn.00412b00
push ebx
push esi
mov esi, dword [0x4fe2c8]
push edi
test esi, esi
jne 0x411fb7
push 0x1400
call fcn.004c0bc7
push 0x2800
mov dword [0x4fe2c8], eax
call fcn.004c0bc7
push 0x20000
mov dword [0x4fe2cc], eax
call fcn.004c0bc7
push 0x40000
mov dword [0x4fe2bc], eax
call fcn.004c0bc7
mov dword [0x4fe2c0], eax
mov eax, dword [0x4fc448]
add eax, eax
push eax
call fcn.004c4e35
mov ebx, eax
add esp, 0x14
mov dword [0x4fe2c4], ebx
test ebx, ebx
je 0x411fab
push 0x1400
push esi
mov esi, dword [0x4fe2c8]
push esi
call fcn.004c22a0
mov edi, dword [0x4fe2cc]
push 0x2800
push 0
push edi
call fcn.004c22a0
mov byte [esi + 0x15c], 3
add esp, 0x18
mov byte [esi + 0xcb0], 1
mov byte [esi + 0xcc4], 2
mov byte [esi + 0x170], 0xc
mov byte [esi + 0xcd8], 4
mov byte [esi + 0xcec], 8
mov byte [esi + 0x148], 0x30
mov byte [esi + 0xc88], 0x10
mov byte [esi + 0xc9c], 0x20
mov byte [esi + 0x724], 0x40
mov byte [esi + 0x738], 0x80
mov byte [edi + 0x24c], 1
mov byte [edi + 0x164c], 2
mov byte [edi + 0x468], 4
mov byte [edi + 0x1868], 8
mov byte [edi + 0x350], 0x10
mov byte [edi + 0x1840], 0x20
mov byte [edi + 0x1b24], 0x40
mov byte [edi + 0x1b38], 0x80
mov dword [esi + 0xb54], 0x4f8e34
mov dword [esi + 0x190], 0x4f9afc
mov dword [esi + 0xb40], 0x4f9b00
jmp 0x411fc3
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x58
jmp fcn.00413140
mov edi, dword [0x4fe2cc]
mov ebx, dword [0x4fe2c4]
lea eax, [esi + 9]
mov ecx, 0x100
mov edx, 0x7fff
and byte [eax + 3], 8
lea eax, [eax + 0x14]
mov word [eax - 0x17], dx
mov word [eax - 0x14], 0
mov byte [eax - 0x12], 0
mov byte [eax - 0xa], 0
sub ecx, 1
jne 0x411fd0
lea eax, [edi + 9]
mov ecx, 0x200
nop word [eax + eax]
and byte [eax + 3], 8
lea eax, [eax + 0x14]
mov word [eax - 0x17], dx
mov word [eax - 0x14], 0
mov byte [eax - 0x12], 0
mov byte [eax - 0xa], 0
sub ecx, 1
jne 0x412000
mov ecx, 0x4f89a4
mov esi, 0x1fe
nop dword [eax + eax]
movzx edx, word [ecx]
lea eax, [edx - 1]
cmp ax, si
ja 0x412045
mov eax, edx
lea eax, [eax + eax*4]
mov byte [edi + eax*4 + 0x13], 1
add ecx, 8
cmp ecx, 0x4f8a0c
jl 0x412030
mov edi, dword [0x4fe2bc]
mov eax, 0x7fff7fff
mov ecx, 0x8000
rep stosd dword es:[edi], eax
mov edi, dword [0x4fe2c0]
mov ecx, 0x10000
rep stosd dword es:[edi], eax
xor eax, eax
cmp dword [0x4fc448], eax
jle 0x41208d
mov ecx, 0x7fff
nop
mov word [ebx + eax*2], cx
inc eax
cmp eax, dword [0x4fc448]
jl 0x412080
movzx eax, word [0x4fc454]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c0bc7
mov dword [esp + 0x44], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0x2c], edi
add esp, 4
mov dword [esp + 0x30], eax
test ebp, ebp
jle 0x412936
mov ecx, dword [esp + 0x40]
mov ebp, dword [0x4fe2c8]
add ecx, 6
mov ebx, dword [0x4fe2cc]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov esi, dword [edx + eax*4]
mov al, byte [esi + 0x12]
test al, al
je 0x41213a
cmp al, 4
jae 0x41213a
cmp byte [0x4fb9e8], 0
je 0x41221c
cmp word [esi + 6], 0
jne 0x41213a
mov edi, dword [esi + 0x20]
test edi, edi
je 0x412136
nop dword [eax]
mov ecx, edi
call fcn.0049d920
test al, al
jne 0x41220c
mov edi, dword [edi + 8]
test edi, edi
jne 0x412110
mov ebp, dword [0x4fe2c8]
mov ebx, dword [0x4fe2cc]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, ecx
jl 0x4120e0
test edi, edi
je 0x412936
mov ebx, dword [esp + 0x40]
push 0x411af0
push 0xc
push edi
push ebx
call fcn.004cad90
add esp, 0x10
test edi, edi
jle 0x412936
mov ecx, dword [0x4fe2bc]
mov ebp, ebx
mov eax, dword [0x4fe2c0]
mov esi, 0x7ff9
mov edx, dword [0x4fe2c8]
mov dword [esp + 0x5c], eax
add eax, 0x270
mov dword [esp + 0x4c], eax
lea eax, [ecx + 0x14a]
mov dword [esp + 0x50], eax
mov eax, 0xfffffeb6
sub eax, ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [0x4fe2cc]
mov dword [esp + 0x58], eax
mov eax, dword [0x4fe2c4]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x3c], eax
nop word [eax + eax]
movzx ebx, word [ebp + 0xa]
mov ax, bx
and ebx, 0x7fff
shr ax, 0xf
mov word [esp + 0x16], ax
mov dword [esp + 0x2c], ebx
cmp bx, si
ja 0x412526
mov al, byte [ebp + 6]
test al, al
je 0x4124bc
movzx eax, al
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
jmp 0x4124c6
mov ebp, dword [0x4fe2c8]
mov ebx, dword [0x4fe2cc]
mov edi, dword [esp + 0x28]
cmp word [esi + 6], 0
je 0x41225a
cmp byte [esi + 0x19], 0
je 0x41226e
mov al, byte [esi + 0x10]
test al, al
jne 0x412237
cmp word [esi + 8], 0
je 0x41226e
movzx ecx, word [esi + 8]
mov edx, 0x1ff
cmp cx, dx
ja 0x41226e
test al, al
jne 0x412277
mov eax, ecx
lea eax, [eax + eax*4]
lea edi, [ebx + eax*4]
mov byte [edi + 0x13], 1
jmp 0x412361
mov eax, dword [esi + 0x20]
test eax, eax
je 0x41226e
cmp byte [eax + 0x1c], 0
jne 0x412229
mov eax, dword [eax + 8]
test eax, eax
jne 0x412261
mov ecx, dword [esp + 0x24]
jmp 0x41213a
movzx ecx, al
lea eax, [ecx + ecx*4]
lea edi, [eax*4]
add edi, ebp
sub ecx, 0x10
je 0x412323
sub ecx, 1
je 0x4122e3
sub ecx, 1
jne 0x412361
mov byte [ebp + 0xcda], 1
mov byte [ebp + 0xcee], 1
mov byte [ebx + 0x46a], 1
mov byte [ebx + 0x186a], 1
cmp byte [esi + 0x16], cl
je 0x412361
mov byte [ebp + 0xcdb], 1
mov byte [ebp + 0xcef], 1
mov byte [ebx + 0x46b], 1
mov byte [ebx + 0x186b], 1
jmp 0x412361
mov byte [ebp + 0xcb2], 1
mov byte [ebp + 0xcc6], 1
mov byte [ebx + 0x24e], 1
mov byte [ebx + 0x164e], 1
cmp byte [esi + 0x16], 0
je 0x412361
mov byte [ebp + 0xcb3], 1
mov byte [ebp + 0xcc7], 1
mov byte [ebx + 0x24f], 1
mov byte [ebx + 0x164f], 1
jmp 0x412361
mov byte [ebp + 0xc8a], 1
mov byte [ebp + 0xc9e], 1
mov byte [ebx + 0x352], 1
mov byte [ebx + 0x1842], 1
cmp byte [esi + 0x16], 0
je 0x412361
mov byte [ebp + 0xc8b], 1
mov byte [ebp + 0xc9f], 1
mov byte [ebx + 0x353], 1
mov byte [ebx + 0x1843], 1
mov byte [edi + 0xa], 1
cmp byte [esi + 0x16], 0
movzx edx, word [esi + 4]
mov dword [esp + 0x3c], edx
je 0x412381
or edx, 0x8000
mov byte [edi + 0xb], 1
mov dword [esp + 0x3c], edx
mov cl, byte [esi + 0x11]
test cl, cl
jne 0x412393
cmp word [esi + 0xa], 0
jne 0x412393
xor al, al
jmp 0x412395
mov al, 1
cmp byte [edi + 8], 0
je 0x412427
cmp byte [esi + 0xf], 0
jne 0x412427
test al, al
jne 0x41242b
test byte [esi + 0x13], 2
jne 0x4123cc
mov dx, word [esi + 8]
mov cl, byte [esi + 0x10]
push 0
call fcn.00411c40
mov edx, dword [esp + 0x40]
add esp, 4
cmp byte [esi + 0xf], 0
jne 0x4123dc
test byte [esi + 0x13], 2
je 0x4123dc
or byte [edi + 0xc], 1
movzx eax, word [esi + 6]
test ax, ax
jne 0x4123e8
movzx eax, dx
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
inc edi
mov dword [esp + 0x28], edi
mov word [ecx + 4], ax
mov al, byte [esi + 0x10]
mov byte [ecx], al
mov ax, word [esi + 8]
mov word [ecx + 2], ax
mov eax, dword [esi]
mov dword [ecx - 6], eax
mov al, byte [esi + 0xe]
mov byte [ecx - 2], al
mov al, byte [esi + 0x15]
mov byte [ecx - 1], al
add ecx, 0xc
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
jmp 0x41213a
test al, al
je 0x4123cc
test cl, cl
je 0x41246a
movzx eax, cl
lea eax, [eax + eax*4]
lea eax, [eax*4]
cmp byte [eax + ebp + 8], 0
je 0x412451
push 1
xor edx, edx
call fcn.00411c40
add esp, 4
jmp 0x4124a7
mov byte [eax + ebp + 9], 1
test byte [esi + 0x13], 1
je 0x4124a7
movzx eax, byte [esi + 0x11]
lea eax, [eax + eax*4]
or byte [ebp + eax*4 + 0xc], 1
jmp 0x4124a7
movzx ecx, word [esi + 0xa]
lea eax, [ecx + ecx*4]
cmp byte [ebx + eax*4 + 8], 0
lea eax, [ebx + eax*4]
je 0x412485
lea eax, [ecx + ecx*4]
mov byte [ebx + eax*4 + 9], 1
jmp 0x4124a7
mov byte [eax + 9], 1
test byte [esi + 0x13], 1
je 0x41249b
movzx eax, word [esi + 0xa]
lea eax, [eax + eax*4]
or byte [ebx + eax*4 + 0xc], 1
movzx eax, word [esi + 0xa]
lea eax, [eax + eax*4]
mov byte [ebx + eax*4 + 0x13], 1
movzx eax, word [edi + 6]
mov word [esi + 0xc], ax
movzx eax, word [esi + 4]
mov word [edi + 6], ax
jmp 0x412132
movzx eax, word [ebp + 8]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movzx eax, word [esi + 6]
add esi, 6
mov edi, 0x7fff
mov ecx, eax
mov edx, eax
cmp ax, di
je 0x412515
mov ebx, dword [esp + 0x34]
mov edi, ecx
mov ebp, 0x7fff
movzx ecx, di
mov eax, dword [ebx + ecx*4]
cmp byte [eax + 0x11], 0
jne 0x4124fb
cmp word [eax + 0xa], 0
mov edx, ecx
je 0x41250d
movzx ecx, word [eax + 0xc]
lea esi, [eax + 0xc]
mov eax, ecx
mov edi, ecx
mov edx, eax
cmp cx, bp
jne 0x4124e6
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
movzx eax, bx
mov eax, dword [ecx + eax*4]
mov word [eax + 0xc], dx
mov word [esi], bx
mov bl, byte [ebp + 4]
mov eax, dword [ebp]
mov edi, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x13], bl
test bl, bl
je 0x41257a
mov al, bl
and al, 0xc0
movzx ecx, al
mov al, bl
neg ecx
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
and al, 0xc
mov al, bl
cmove edx, ecx
mov esi, edx
or esi, 4
and al, 0x30
mov al, bl
cmove esi, edx
mov ecx, esi
or ecx, 2
and al, 3
mov eax, dword [esp + 0x30]
cmove ecx, esi
or edi, ecx
mov dword [esp + 0x38], edi
cmp byte [ebp + 5], 0
je 0x412584
xor dl, dl
jmp 0x4125d0
mov ebx, eax
mov ecx, eax
and bl, 8
neg bl
sbb bl, bl
and bl, 0xc0
mov al, bl
or al, 0xc
and cl, 1
mov ecx, dword [esp + 0x30]
movzx edx, al
movzx eax, bl
cmove edx, eax
mov al, dl
or al, 3
and cl, 2
mov ecx, dword [esp + 0x30]
movzx ebx, al
movzx eax, dl
cmove ebx, eax
mov al, bl
or al, 0x30
and cl, 4
movzx edx, al
movzx eax, bl
cmove edx, eax
or dl, byte [esp + 0x13]
not dl
mov eax, dword [esp + 0x4c]
lea ebx, [ebp + 0xa]
mov edi, dword [esp + 0x50]
movzx esi, dl
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], edi
nop word [eax + eax]
test eax, esi
jne 0x4128e8
and al, 0xc0
movzx ecx, al
mov al, byte [esp + 0x1c]
neg ecx
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
and al, 0xc
cmove edx, ecx
mov ecx, dword [esp + 0x1c]
mov al, cl
mov esi, edx
or esi, 4
and al, 0x30
mov al, cl
cmove esi, edx
mov ecx, esi
or ecx, 2
and al, 3
cmove ecx, esi
and ecx, dword [esp + 0x38]
cmp dword [esp + 0x38], ecx
jne case.0x412821.19
mov al, byte [ebp + 4]
mov byte [esp + 0x13], al
test al, al
je 0x412678
movzx ecx, al
mov eax, ecx
and eax, dword [esp + 0x1c]
cmp ecx, eax
jne case.0x412821.19
mov al, byte [ebp + 6]
mov byte [esp + 0x14], al
test al, al
je 0x412690
mov ecx, dword [esp + 0x54]
movzx eax, al
add eax, dword [esp + 0x20]
jmp 0x41269e
movzx eax, word [ebp + 8]
add eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add eax, edi
movzx edx, word [ecx + eax*2]
lea esi, [ecx + eax*2]
mov eax, 0x7fff
mov dword [esp + 0x44], esi
cmp dx, ax
je 0x4127f5
mov ecx, edx
and ecx, eax
mov ax, word [0x4fc454]
cmp word [esp + 0x2c], ax
jae case.0x412821.19
cmp cx, ax
jae case.0x412821.19
mov ax, dx
shr ax, 0xf
cmp byte [esp + 0x16], 0
je 0x41277f
test al, al
jne 0x4127f5
mov eax, dword [0x4fc444]
mov edi, ecx
mov ecx, dword [eax + edi*4]
mov eax, 0xff
cmp byte [ecx + 0x15], 0
jne 0x412708
movzx eax, byte [ecx + 0xf]
test dword [esp + 0x24], eax
jne 0x412779
mov al, byte [ecx + 0xe]
not al
test byte [esp + 0x13], al
jne 0x412779
mov eax, dword [ecx]
mov esi, dword [ebp]
not eax
test esi, eax
je 0x412761
mov bl, byte [ecx + 0xf]
mov al, bl
and al, 0xc0
movzx ecx, al
mov al, bl
neg ecx
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
and al, 0xc
mov al, bl
cmove edx, ecx
mov ecx, edx
or ecx, 4
and al, 0x30
cmove ecx, edx
mov eax, ecx
or eax, 2
and bl, 3
lea ebx, [ebp + 0xa]
cmove eax, ecx
not eax
test esi, eax
jne 0x412775
mov ecx, dword [esp + 0x3c]
mov ax, word [ebx]
mov word [ecx + edi*2], ax
mov edi, dword [esp + 0x30]
jmp case.0x412821.19
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
jmp 0x4127f5
test al, al
jne 0x4127ad
mov eax, dword [esp + 0x2c]
mov edi, 0x7fff
mov edx, dword [esp + 0x3c]
movzx eax, ax
cmp word [edx + eax*2], di
mov edi, dword [esp + 0x30]
jne 0x4127f5
movzx eax, word [edx + ecx*2]
mov ecx, 0x7fff
mov edx, eax
cmp ax, cx
je 0x4127f5
mov eax, dword [0x4fc444]
mov ecx, edx
and ecx, 0x7fff
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x15], 0
jne 0x4127d0
mov al, byte [ecx + 0xf]
or al, byte [esp + 0x48]
not al
test al, al
jne 0x4127f5
mov eax, dword [esp + 0x38]
not eax
test dword [ecx], eax
jne 0x4127f5
movzx eax, byte [esp + 0x13]
not eax
test byte [ecx + 0xe], al
jne 0x4127f5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
movzx eax, ax
mov word [ecx + eax*2], dx
cmp byte [esp + 0x14], 0
mov eax, ebx
mov ax, word [eax]
mov word [esi], ax
je case.0x412821.19
movzx eax, byte [ebp + 6]
add eax, 0xfffffff0
cmp eax, 0x95
ja case.0x412821.19
movzx eax, byte [eax + 0x4129c4]
jmp dword [eax*4 + 0x4129a8]
movzx eax, word [ebx]
mov ecx, dword [esp + 0x18]
mov word [edi - 2], ax
movzx eax, word [ebx]
mov word [ecx - 0x200], ax
cmp byte [ebp + 6], 0xa4
je case.0x412821.19
movzx eax, word [ebx]
mov word [edi], ax
movzx eax, word [ebx]
mov word [ecx], ax
jmp case.0x412821.19
movzx eax, word [ebx]
mov ecx, dword [esp + 0x18]
mov word [edi], ax
movzx eax, word [ebx]
mov word [ecx], ax
jmp case.0x412821.19
movzx eax, word [ebx]
mov ecx, dword [esp + 0x18]
mov word [edi - 0xa], ax
movzx eax, word [ebx]
mov word [ecx - 0x21c], ax
cmp byte [ebp + 6], 0xa0
je case.0x412821.19
movzx eax, word [ebx]
mov word [edi - 8], ax
movzx eax, word [ebx]
mov word [ecx - 4], ax
jmp case.0x412821.19
movzx eax, word [ebx]
mov ecx, dword [esp + 0x18]
mov word [edi - 8], ax
movzx eax, word [ebx]
mov word [ecx - 4], ax
jmp case.0x412821.19
movzx eax, word [ebx]
mov ecx, dword [esp + 0x18]
mov word [edi - 6], ax
movzx eax, word [ebx]
mov word [ecx - 0x236], ax
cmp byte [ebp + 6], 0xa2
je case.0x412821.19
jmp 0x4128ca
mov ecx, dword [esp + 0x18]
movzx eax, word [ebx]
mov word [edi - 4], ax
movzx eax, word [ebx]
mov word [ecx - 0x36], ax
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add ecx, 0x100
inc eax
add edi, 0x200
mov dword [esp + 0x1c], eax
add edx, 0x400
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edx
cmp ecx, 0xff00
jle 0x412610
mov ecx, dword [esp + 0x60]
add ebp, 0xc
sub dword [esp + 0x28], 1
mov esi, 0x7ff9
mov edx, dword [esp + 0x64]
mov dword [esp + 0x48], ebp
jne 0x4121d0
push dword [esp + 0x40]
call fcn.004c0bd0
mov esi, dword [0x4fe2c8]
add esp, 4
cmp byte [esi + 0x14a], 0
je 0x412962
push 0xa1
mov dl, 0xa0
mov cl, 0x10
call fcn.00412a60
add esp, 4
cmp byte [esi + 0x15e], 0
je 0x41297c
push 0xa3
mov dl, 0xa2
mov cl, 0x11
call fcn.00412a60
add esp, 4
cmp byte [esi + 0x172], 0
je 0x412996
push 0xa5
mov dl, 0xa4
mov cl, 0x12
call fcn.00412a60
add esp, 4
mov cl, byte [esp + 0x15]
xor dl, dl
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x58
jmp fcn.00412b00