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

Disassembly:
sub esp, 0x54
mov eax, dword [0x4e842c]
mov dword [esp + 0x1c], eax
mov al, byte [0x4e83d7]
or al, byte [0x4e83d6]
push ebp
mov ebp, edx
mov byte [esp + 5], al
mov dword [esp + 0x1c], ebp
jne 0x4111f1
xor dl, dl
xor cl, cl
pop ebp
add esp, 0x54
jmp fcn.00411f10
push ebx
push esi
mov esi, dword [0x4ea2b0]
push edi
test esi, esi
jne 0x411363
push 0x1400
call fcn.004ae7c0
add esp, 4
mov dword [0x4ea2b0], eax
test eax, eax
je 0x411357
push 0x2800
call fcn.004ae7c0
add esp, 4
mov dword [0x4ea2b4], eax
test eax, eax
je 0x411357
push 0x20000
call fcn.004ae7c0
add esp, 4
mov dword [0x4ea2a4], eax
test eax, eax
je 0x411357
push 0x40000
call fcn.004ae7c0
add esp, 4
mov dword [0x4ea2a8], eax
test eax, eax
je 0x411357
mov eax, dword [0x4e8430]
add eax, eax
push eax
call fcn.004b2c3e
mov ebx, eax
add esp, 4
mov dword [0x4ea2ac], ebx
test ebx, ebx
je 0x411357
push 0x1400
push esi
mov esi, dword [0x4ea2b0]
push esi
call fcn.004afdf0
mov edi, dword [0x4ea2b4]
push 0x2800
push 0
push edi
call fcn.004afdf0
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], 0x4e4e34
mov dword [esi + 0x190], 0x4e5afc
mov dword [esi + 0xb40], 0x4e5b00
jmp 0x41136f
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x54
jmp fcn.00412550
mov edi, dword [0x4ea2b4]
mov ebx, dword [0x4ea2ac]
lea eax, [esi + 9]
mov ecx, 0x100
mov edx, 0x7fff
nop dword [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 0x411380
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 0x4113b0
mov ecx, 0x4e49a4
mov esi, 0x1fe
nop dword [eax + eax]
movzx edx, word [ecx]
lea eax, [edx - 1]
cmp ax, si
ja 0x4113f5
mov eax, edx
lea eax, [eax + eax*4]
mov byte [edi + eax*4 + 0x13], 1
add ecx, 8
cmp ecx, 0x4e4a0c
jl 0x4113e0
mov edi, dword [0x4ea2a4]
mov eax, 0x7fff7fff
mov ecx, 0x8000
rep stosd dword es:[edi], eax
mov edi, dword [0x4ea2a8]
mov ecx, 0x10000
rep stosd dword es:[edi], eax
xor eax, eax
cmp dword [0x4e8430], eax
jle 0x41143d
mov ecx, 0x7fff
nop
mov word [ebx + eax*2], cx
inc eax
cmp eax, dword [0x4e8430]
jl 0x411430
movzx eax, word [0x4e843c]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ae7c0
mov dword [esp + 0x40], eax
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], eax
test ebp, ebp
jle 0x411d41
mov ecx, dword [esp + 0x3c]
mov edx, 0x1ff
mov edi, dword [0x4ea2b0]
add ecx, 6
mov ebx, dword [0x4ea2b4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx + eax*4]
mov al, byte [esi + 0x12]
sub al, 1
cmp al, 2
ja 0x4114e6
cmp byte [0x4e79d0], 0
je 0x4115d1
cmp word [esi + 6], 0
jne 0x4114e6
mov ebp, dword [esi + 0x20]
test ebp, ebp
je 0x4114e2
nop
mov ecx, ebp
call fcn.0048d9d0
test al, al
jne 0x4115bc
mov ebp, dword [ebp + 8]
test ebp, ebp
jne 0x4114c0
mov edi, dword [0x4ea2b0]
mov ebx, dword [0x4ea2b4]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov edx, 0x1ff
inc eax
mov dword [esp + 0x30], eax
cmp eax, ebp
jl 0x411493
test esi, esi
je 0x411d41
mov ebx, dword [esp + 0x3c]
push 0x410ea0
push 0xc
push esi
push ebx
call fcn.004b8310
add esp, 0x10
test esi, esi
jle 0x411d41
mov ecx, dword [0x4ea2a4]
mov edi, ebx
mov eax, dword [0x4ea2a8]
mov ebp, 0x7ff9
mov edx, dword [0x4ea2b0]
mov dword [esp + 0x58], eax
add eax, 0x270
mov dword [esp + 0x48], eax
lea eax, [ecx + 0x14a]
mov dword [esp + 0x4c], eax
mov eax, 0xfffffeb6
sub eax, ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [0x4ea2b4]
mov dword [esp + 0x54], eax
mov eax, dword [0x4ea2ac]
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x38], eax
nop word [eax + eax]
movzx ebx, word [edi + 0xa]
mov ax, bx
and ebx, 0x7fff
shr ax, 0xf
mov word [esp + 0x12], ax
mov dword [esp + 0x40], ebx
cmp bx, bp
ja 0x41195b
mov al, byte [edi + 6]
test al, al
je 0x4118f5
movzx eax, al
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
jmp 0x4118ff
mov edi, dword [0x4ea2b0]
mov edx, 0x1ff
mov ebx, dword [0x4ea2b4]
mov ebp, dword [esp + 0x28]
cmp word [esi + 6], 0
je 0x411617
mov al, byte [esi + 0x19]
test al, al
je 0x4114e6
mov al, byte [esi + 0x10]
test al, al
jne 0x4115f5
cmp word [esi + 8], 0
je 0x4114e6
movzx ecx, word [esi + 8]
cmp cx, dx
ja 0x4114e6
test al, al
jne 0x411634
mov eax, ecx
lea eax, [eax + eax*4]
lea ebp, [ebx + eax*4]
mov byte [ebp + 0x13], 1
jmp 0x411715
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4114e6
cmp byte [eax + 0x1c], 0
jne 0x4115e3
mov eax, dword [eax + 8]
test eax, eax
jne 0x411622
jmp 0x4114e6
movzx ecx, al
lea eax, [ecx + ecx*4]
lea ebp, [edi + eax*4]
sub ecx, 0x10
je 0x4116d7
sub ecx, 1
je 0x411697
sub ecx, 1
jne 0x411715
mov byte [edi + 0xcda], 1
mov byte [edi + 0xcee], 1
mov byte [ebx + 0x46a], 1
mov byte [ebx + 0x186a], 1
cmp byte [esi + 0x16], cl
je 0x411715
mov byte [edi + 0xcdb], 1
mov byte [edi + 0xcef], 1
mov byte [ebx + 0x46b], 1
mov byte [ebx + 0x186b], 1
jmp 0x411715
mov byte [edi + 0xcb2], 1
mov byte [edi + 0xcc6], 1
mov byte [ebx + 0x24e], 1
mov byte [ebx + 0x164e], 1
cmp byte [esi + 0x16], 0
je 0x411715
mov byte [edi + 0xcb3], 1
mov byte [edi + 0xcc7], 1
mov byte [ebx + 0x24f], 1
mov byte [ebx + 0x164f], 1
jmp 0x411715
mov byte [edi + 0xc8a], 1
mov byte [edi + 0xc9e], 1
mov byte [ebx + 0x352], 1
mov byte [ebx + 0x1842], 1
cmp byte [esi + 0x16], 0
je 0x411715
mov byte [edi + 0xc8b], 1
mov byte [edi + 0xc9f], 1
mov byte [ebx + 0x353], 1
mov byte [ebx + 0x1843], 1
mov byte [ebp + 0xa], 1
cmp byte [esi + 0x16], 0
movzx eax, word [esi + 4]
mov dword [esp + 0x38], eax
je 0x411734
or eax, 0x8000
mov byte [ebp + 0xb], 1
mov dword [esp + 0x38], eax
mov dl, byte [esi + 0x11]
test dl, dl
jne 0x411746
cmp word [esi + 0xa], 0
jne 0x411746
xor al, al
jmp 0x411748
mov al, 1
cmp byte [ebp + 8], 0
je 0x4117d5
cmp byte [esi + 0xf], 0
jne 0x4117d5
test al, al
jne 0x4117d9
test byte [esi + 0x13], 2
jne 0x411773
mov dx, word [esi + 8]
mov cl, byte [esi + 0x10]
push 0
call fcn.00410ff0
add esp, 4
cmp byte [esi + 0xf], 0
jne 0x411783
test byte [esi + 0x13], 2
je 0x411783
or byte [ebp + 0xc], 1
movzx ecx, word [esi + 6]
mov eax, dword [esp + 0x38]
mov edx, ecx
mov ebp, dword [esp + 0x28]
test cx, cx
mov ecx, dword [esp + 0x34]
movzx eax, ax
cmove edx, eax
mov word [ecx + 4], dx
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 esi, dword [esp + 0x24]
inc esi
mov byte [ecx - 1], al
add ecx, 0xc
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], ecx
jmp 0x4114ea
test al, al
je 0x411773
test dl, dl
je 0x4118a8
movzx ecx, dl
lea eax, [ecx + ecx*4]
cmp byte [edi + eax*4 + 8], 0
lea eax, [edi + eax*4]
je 0x411890
sub dl, 0x10
cmp dl, 2
ja 0x411886
sub ecx, 0x10
je 0x411861
sub ecx, 1
je 0x41183c
sub ecx, 1
jne 0x4118e0
mov byte [edi + 0x171], 2
mov byte [edi + 0xcd9], 2
mov byte [edi + 0xced], 2
mov byte [ebx + 0x469], 2
mov byte [ebx + 0x1869], 2
jmp 0x4118e0
mov byte [edi + 0x15d], 2
mov byte [edi + 0xcb1], 2
mov byte [edi + 0xcc5], 2
mov byte [ebx + 0x24d], 2
mov byte [ebx + 0x164d], 2
jmp 0x4118e0
mov byte [edi + 0x149], 2
mov byte [edi + 0xc89], 2
mov byte [edi + 0xc9d], 2
mov byte [ebx + 0x351], 2
mov byte [ebx + 0x1841], 2
jmp 0x4118e0
lea eax, [ecx + ecx*4]
mov byte [edi + eax*4 + 9], 1
jmp 0x4118e0
mov byte [eax + 9], 1
test byte [esi + 0x13], 1
je 0x4118e0
movzx eax, byte [esi + 0x11]
lea eax, [eax + eax*4]
or byte [edi + eax*4 + 0xc], 1
jmp 0x4118e0
movzx eax, word [esi + 0xa]
lea eax, [eax + eax*4]
mov byte [ebx + eax*4 + 9], 1
cmp byte [ebx + eax*4 + 8], 0
jne 0x4118e0
test byte [esi + 0x13], 1
je 0x4118cd
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
nop dword [eax]
movzx eax, word [ebp + 6]
mov word [esi + 0xc], ax
movzx eax, word [esi + 4]
mov word [ebp + 6], ax
jmp 0x4114e2
movzx eax, word [edi + 8]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movzx eax, word [esi + 6]
add esi, 6
mov ecx, 0x7fff
mov edx, eax
cmp ax, cx
je 0x41194a
mov ebp, dword [esp + 0x2c]
mov ecx, eax
mov ebx, 0x7fff
nop dword [eax]
movzx eax, cx
mov eax, dword [ebp + eax*4]
cmp byte [eax + 0x11], 0
jne 0x411937
cmp word [eax + 0xa], 0
movzx edx, cx
je 0x411946
lea esi, [eax + 0xc]
movzx eax, word [esi]
mov ecx, eax
mov edx, eax
cmp ax, bx
jne 0x411920
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
movzx eax, bx
mov eax, dword [ecx + eax*4]
mov word [eax + 0xc], dx
mov word [esi], bx
mov ebp, dword [edi]
mov eax, ebp
mov bl, byte [edi + 4]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], eax
mov byte [esp + 0x10], bl
test bl, bl
je 0x4119ae
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 + 0x28]
cmove ecx, esi
or ebp, ecx
mov dword [esp + 0x34], ebp
cmp byte [edi + 5], 0
je 0x4119b8
xor dl, dl
jmp 0x411a04
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 + 0x28]
movzx edx, al
movzx eax, bl
cmove edx, eax
mov al, dl
or al, 3
and cl, 2
mov ecx, dword [esp + 0x28]
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 + 0x10]
not dl
mov ecx, dword [esp + 0x48]
xor eax, eax
mov ebp, dword [esp + 0x4c]
movzx ebx, dl
mov dword [esp + 0x14], ecx
mov ecx, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebp
nop
test eax, ebx
jne 0x411cf7
and al, 0xc0
movzx ecx, al
mov al, byte [esp + 0x18]
neg ecx
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
and al, 0xc
cmove edx, ecx
mov ecx, dword [esp + 0x18]
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 + 0x34]
cmp dword [esp + 0x34], ecx
jne 0x411ceb
mov bl, byte [edi + 4]
test bl, bl
je 0x411a94
movzx ecx, bl
mov eax, ecx
and eax, dword [esp + 0x18]
cmp ecx, eax
jne case.0x411c31.19
mov bh, byte [edi + 6]
test bh, bh
je 0x411aa8
mov ecx, dword [esp + 0x50]
movzx eax, bh
add eax, dword [esp + 0x1c]
jmp 0x411ab6
movzx eax, word [edi + 8]
add eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
add eax, ebp
lea eax, [ecx + eax*2]
movzx ecx, word [eax]
mov dword [esp + 0x44], eax
mov edx, ecx
mov eax, 0x7fff
cmp cx, ax
je 0x411c05
mov esi, dword [esp + 0x40]
and ecx, eax
mov ax, word [0x4e843c]
cmp si, ax
jae case.0x411c31.19
cmp cx, ax
jae case.0x411c31.19
mov ax, dx
shr ax, 0xf
cmp byte [esp + 0x12], 0
je 0x411b99
test al, al
jne 0x411c05
mov eax, dword [0x4e842c]
mov ebp, ecx
mov edx, dword [eax + ebp*4]
cmp byte [edx + 0x15], 0
je 0x411b1e
mov ecx, dword [esp + 0x20]
jmp 0x411b2b
mov eax, dword [esp + 0x30]
movzx ecx, byte [edx + 0xf]
movzx eax, al
and ecx, eax
test ecx, ecx
jne 0x411c01
mov al, byte [edx + 0xe]
not al
test bl, al
jne 0x411c01
mov eax, dword [edx]
mov esi, dword [edi]
not eax
test esi, eax
je 0x411b84
mov bl, byte [edx + 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
cmove eax, ecx
not eax
test esi, eax
jne 0x411c01
mov ecx, dword [esp + 0x38]
mov ax, word [edi + 0xa]
mov word [ecx + ebp*2], ax
mov ebp, dword [esp + 0x28]
jmp case.0x411c31.19
test al, al
jne 0x411bb7
mov edx, dword [esp + 0x38]
mov ebp, 0x7fff
movzx eax, si
cmp word [edx + eax*2], bp
mov ebp, dword [esp + 0x28]
jne 0x411c05
movzx edx, word [edx + ecx*2]
mov eax, 0x7fff
cmp dx, ax
je 0x411c05
mov ecx, edx
and ecx, eax
mov eax, dword [0x4e842c]
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x15], 0
jne 0x411be0
mov al, byte [ecx + 0xf]
or al, byte [esp + 0x30]
not al
test al, al
jne 0x411c05
mov eax, dword [esp + 0x34]
not eax
test dword [ecx], eax
jne 0x411c05
movzx eax, bl
not eax
test byte [ecx + 0xe], al
jne 0x411c05
mov ecx, dword [esp + 0x38]
movzx eax, si
mov word [ecx + eax*2], dx
jmp 0x411c05
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov ax, word [edi + 0xa]
mov word [ecx], ax
test bh, bh
je case.0x411c31.19
movzx eax, byte [edi + 6]
add eax, 0xfffffff0
cmp eax, 0x95
ja case.0x411c31.19
movzx eax, byte [eax + 0x411dd0]
jmp dword [eax*4 + 0x411db4]
movzx eax, word [edi + 0xa]
mov ecx, dword [esp + 0x14]
mov word [ebp - 2], ax
movzx eax, word [edi + 0xa]
mov word [ecx - 0x200], ax
cmp byte [edi + 6], 0xa4
je case.0x411c31.19
movzx eax, word [edi + 0xa]
mov word [ebp], ax
movzx eax, word [edi + 0xa]
mov word [ecx], ax
jmp case.0x411c31.19
movzx eax, word [edi + 0xa]
mov ecx, dword [esp + 0x14]
mov word [ebp], ax
movzx eax, word [edi + 0xa]
mov word [ecx], ax
jmp case.0x411c31.19
movzx eax, word [edi + 0xa]
mov ecx, dword [esp + 0x14]
mov word [ebp - 0xa], ax
movzx eax, word [edi + 0xa]
mov word [ecx - 0x21c], ax
cmp byte [edi + 6], 0xa0
je case.0x411c31.19
jmp 0x411ca2
mov ecx, dword [esp + 0x14]
movzx eax, word [edi + 0xa]
mov word [ebp - 8], ax
movzx eax, word [edi + 0xa]
mov word [ecx - 4], ax
jmp case.0x411c31.19
movzx eax, word [edi + 0xa]
mov ecx, dword [esp + 0x14]
mov word [ebp - 6], ax
movzx eax, word [edi + 0xa]
mov word [ecx - 0x236], ax
cmp byte [edi + 6], 0xa2
je case.0x411c31.19
jmp 0x411cd7
mov ecx, dword [esp + 0x14]
movzx eax, word [edi + 0xa]
mov word [ebp - 4], ax
movzx eax, word [edi + 0xa]
mov word [ecx - 0x36], ax
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add ecx, 0x100
inc eax
add ebp, 0x200
mov dword [esp + 0x18], eax
add edx, 0x400
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], edx
cmp ecx, 0xff00
jle 0x411a30
mov ecx, dword [esp + 0x5c]
add edi, 0xc
sub dword [esp + 0x24], 1
mov ebp, 0x7ff9
mov edx, dword [esp + 0x60]
jne 0x411580
push dword [esp + 0x3c]
call fcn.004ae7c9
mov esi, dword [0x4ea2b0]
add esp, 4
cmp byte [esi + 0x14a], 0
je 0x411d6d
push 0xa1
mov dl, 0xa0
mov cl, 0x10
call fcn.00411e70
add esp, 4
cmp byte [esi + 0x15e], 0
je 0x411d87
push 0xa3
mov dl, 0xa2
mov cl, 0x11
call fcn.00411e70
add esp, 4
cmp byte [esi + 0x172], 0
je 0x411da1
push 0xa5
mov dl, 0xa4
mov cl, 0x12
call fcn.00411e70
add esp, 4
mov cl, byte [esp + 0x11]
xor dl, dl
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x54
jmp fcn.00411f10