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

Disassembly:
sub esp, 0x48
mov eax, dword [0x5085fc]
mov dword [esp + 0x1c], eax
mov al, byte [0x5085a7]
or al, byte [0x5085a6]
push ebp
mov ebp, edx
mov byte [esp + 5], al
mov dword [esp + 0x14], ebp
jne 0x411971
xor dl, dl
xor cl, cl
pop ebp
add esp, 0x48
jmp fcn.004125f0
push ebx
push esi
mov esi, dword [0x50a950]
push edi
test esi, esi
jne 0x411ae3
push 0x1400
call fcn.004b6200
add esp, 4
mov dword [0x50a950], eax
test eax, eax
je 0x411ad7
push 0x2800
call fcn.004b6200
add esp, 4
mov dword [0x50a954], eax
test eax, eax
je 0x411ad7
push 0x20000
call fcn.004b6200
add esp, 4
mov dword [0x50a944], eax
test eax, eax
je 0x411ad7
push 0x40000
call fcn.004b6200
add esp, 4
mov dword [0x50a948], eax
test eax, eax
je 0x411ad7
mov eax, dword [0x508600]
add eax, eax
push eax
call fcn.004bb7a0
mov ebx, eax
add esp, 4
mov dword [0x50a94c], ebx
test ebx, ebx
je 0x411ad7
push 0x1400
push esi
mov esi, dword [0x50a950]
push esi
call fcn.004b7c10
mov edi, dword [0x50a954]
push 0x2800
push 0
push edi
call fcn.004b7c10
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], 0x504e44
mov dword [esi + 0x190], 0x505b0c
mov dword [esi + 0xb40], 0x505b10
jmp 0x411aef
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x48
jmp fcn.00412c20
mov edi, dword [0x50a954]
mov ebx, dword [0x50a94c]
mov edx, 0x7fff
lea eax, [esi + 9]
mov ecx, 0x100
mov dword [esp + 0x38], edx
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 0x411b00
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 0x411b30
mov ecx, 0x5049b4
mov esi, 0x1fe
nop dword [eax + eax]
movzx edx, word [ecx]
lea eax, [edx - 1]
cmp ax, si
ja 0x411b75
mov eax, edx
lea eax, [eax + eax*4]
mov byte [edi + eax*4 + 0x13], 1
add ecx, 8
cmp ecx, 0x504a1c
jl 0x411b60
mov edi, dword [0x50a944]
mov eax, 0x7fff7fff
mov ecx, 0x8000
rep stosd dword es:[edi], eax
mov edi, dword [0x50a948]
mov ecx, 0x10000
rep stosd dword es:[edi], eax
xor eax, eax
cmp dword [0x508600], eax
jle 0x411bbd
mov ecx, 0x7fff
nop
mov word [ebx + eax*2], cx
inc eax
cmp eax, dword [0x508600]
jl 0x411bb0
movzx eax, word [0x50860c]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b6200
mov dword [esp + 0x38], eax
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], eax
test ebp, ebp
jle 0x412429
mov ecx, dword [esp + 0x34]
mov edx, 0x1ff
mov edi, dword [0x50a950]
add ecx, 6
mov ebx, dword [0x50a954]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx + eax*4]
mov al, byte [esi + 0x12]
sub al, 1
cmp al, 2
ja 0x411c66
cmp byte [0x507b20], 0
je 0x411d44
cmp word [esi + 6], 0
jne 0x411c66
mov ebp, dword [esi + 0x20]
test ebp, ebp
je 0x411c62
nop
mov ecx, ebp
call fcn.0048ee30
test al, al
jne 0x411d2f
mov ebp, dword [ebp + 8]
test ebp, ebp
jne 0x411c40
mov edi, dword [0x50a950]
mov ebx, dword [0x50a954]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, 0x1ff
inc eax
mov dword [esp + 0x1c], eax
cmp eax, ebp
jl 0x411c13
test esi, esi
je 0x412429
mov ebx, dword [esp + 0x34]
push 0x411600
push 0xc
push esi
push ebx
call fcn.004c34d0
add esp, 0x10
test esi, esi
jle 0x412429
mov ecx, dword [0x50a944]
mov edi, ebx
mov eax, dword [0x50a948]
mov esi, 0x7ff9
mov edx, dword [0x50a950]
mov ebp, dword [0x50a94c]
mov dword [esp + 0x48], eax
add eax, 0x270
mov dword [esp + 0x3c], eax
lea eax, [ecx + 0x14a]
mov dword [esp + 0x40], eax
mov eax, 0xfffffeb6
sub eax, ecx
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x50a954]
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ecx
movzx ebx, word [edi + 0xa]
mov ax, bx
and ebx, 0x7fff
shr ax, 0xf
mov word [esp + 0x12], ax
mov dword [esp + 0x28], ebx
cmp bx, si
ja 0x4120dc
mov al, byte [edi + 6]
test al, al
je 0x412075
movzx eax, al
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
jmp 0x41207f
mov edi, dword [0x50a950]
mov edx, 0x1ff
mov ebx, dword [0x50a954]
mov ebp, dword [esp + 0x20]
cmp word [esi + 6], 0
je 0x411d8a
mov al, byte [esi + 0x19]
test al, al
je 0x411c66
mov al, byte [esi + 0x10]
test al, al
jne 0x411d68
cmp word [esi + 8], 0
je 0x411c66
movzx ecx, word [esi + 8]
cmp cx, dx
ja 0x411c66
test al, al
jne 0x411da7
mov eax, ecx
lea eax, [eax + eax*4]
lea ebp, [ebx + eax*4]
mov byte [ebp + 0x13], 1
jmp 0x411e8b
mov eax, dword [esi + 0x20]
test eax, eax
je 0x411c66
cmp byte [eax + 0x1c], 0
jne 0x411d56
mov eax, dword [eax + 8]
test eax, eax
jne 0x411d95
jmp 0x411c66
movzx ecx, al
lea eax, [ecx + ecx*4]
lea ebp, [edi + eax*4]
sub ecx, 0x10
je 0x411e4d
sub ecx, 1
je 0x411e0d
sub ecx, 1
jne 0x411e8b
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 0x411e8b
mov byte [edi + 0xcdb], 1
mov byte [edi + 0xcef], 1
mov byte [ebx + 0x46b], 1
mov byte [ebx + 0x186b], 1
jmp 0x411e8b
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 0x411e8b
mov byte [edi + 0xcb3], 1
mov byte [edi + 0xcc7], 1
mov byte [ebx + 0x24f], 1
mov byte [ebx + 0x164f], 1
jmp 0x411e8b
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 0x411e8b
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 + 0x30], eax
je 0x411eaa
or eax, 0x8000
mov byte [ebp + 0xb], 1
mov dword [esp + 0x30], eax
mov dl, byte [esi + 0x11]
test dl, dl
jne 0x411ebc
cmp word [esi + 0xa], 0
jne 0x411ebc
xor al, al
jmp 0x411ebe
mov al, 1
cmp byte [ebp + 8], 0
je 0x411f53
cmp byte [esi + 0xf], 0
jne 0x411f53
test al, al
jne 0x411f57
test byte [esi + 0x13], 2
jne 0x411ef1
mov dx, word [esi + 8]
mov cl, byte [esi + 0x10]
push 0
call fcn.00411770
add esp, 4
cmp byte [esi + 0xf], 0
jne 0x411f01
test byte [esi + 0x13], 2
je 0x411f01
or byte [ebp + 0xc], 1
movzx ecx, word [esi + 6]
mov eax, dword [esp + 0x30]
mov edx, ecx
mov ebp, dword [esp + 0x20]
test cx, cx
mov ecx, dword [esp + 0x28]
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 + 0x28], ecx
jmp 0x411c6a
test al, al
je 0x411ef1
test dl, dl
je 0x412029
movzx ecx, dl
lea eax, [ecx + ecx*4]
cmp byte [edi + eax*4 + 8], 0
lea eax, [edi + eax*4]
je 0x412011
sub dl, 0x10
cmp dl, 2
ja 0x412007
sub ecx, 0x10
je 0x411fe2
sub ecx, 1
je 0x411fba
sub ecx, 1
jne 0x412060
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 0x412060
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 0x412060
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 0x412060
lea eax, [ecx + ecx*4]
mov byte [edi + eax*4 + 9], 1
jmp 0x412060
mov byte [eax + 9], 1
test byte [esi + 0x13], 1
je 0x412060
movzx eax, byte [esi + 0x11]
lea eax, [eax + eax*4]
or byte [edi + eax*4 + 0xc], 1
jmp 0x412060
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 0x412060
test byte [esi + 0x13], 1
je 0x41204e
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 word [eax + eax]
movzx eax, word [ebp + 6]
mov word [esi + 0xc], ax
movzx eax, word [esi + 4]
mov word [ebp + 6], ax
jmp 0x411c62
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 0x4120cb
mov ebx, dword [esp + 0x2c]
mov ecx, eax
nop dword [eax + eax]
movzx eax, cx
mov eax, dword [ebx + eax*4]
cmp byte [eax + 0x11], 0
jne 0x4120b6
cmp word [eax + 0xa], 0
movzx edx, cx
je 0x4120c7
lea esi, [eax + 0xc]
movzx eax, word [esi]
mov ecx, eax
mov edx, eax
cmp ax, word [esp + 0x38]
jne 0x4120a0
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
movzx eax, bx
mov eax, dword [ecx + eax*4]
mov word [eax + 0xc], dx
mov word [esi], bx
mov bl, byte [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], bl
test bl, bl
je 0x41212b
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 + 0x20]
cmove ecx, esi
or dword [esp + 0x30], ecx
cmp byte [edi + 5], 0
je 0x412135
xor cl, cl
jmp 0x412181
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 + 0x20]
movzx edx, al
movzx eax, bl
cmove edx, eax
mov al, dl
or al, 3
and cl, 2
movzx ebx, al
movzx eax, dl
mov edx, dword [esp + 0x20]
cmove ebx, eax
mov al, bl
or al, 0x30
and dl, 4
movzx ecx, al
movzx eax, bl
cmove ecx, eax
or cl, byte [esp + 0x10]
not cl
mov eax, dword [esp + 0x3c]
xor ebx, ebx
movzx esi, cl
mov ecx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test ebx, esi
jne 0x4123e4
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
and ecx, eax
cmp eax, ecx
jne case.0x412316.19
mov al, byte [edi + 4]
test al, al
je 0x412202
movzx ecx, al
mov eax, ecx
and eax, ebx
cmp ecx, eax
jne case.0x412316.19
mov al, byte [edi + 6]
test al, al
jne 0x412295
movzx eax, word [edi + 8]
add eax, dword [esp + 0x44]
add eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
lea esi, [ecx + eax*2]
mov ecx, 0x7fff
movzx eax, word [esi]
mov edx, eax
cmp ax, cx
jne 0x41223b
mov ax, word [edi + 0xa]
mov word [esi], ax
jmp case.0x412316.19
shr ax, 0xf
cmp byte [esp + 0x12], 0
je 0x41225a
test al, al
jne 0x412276
mov ax, word [edi + 0xa]
and edx, ecx
mov word [ebp + edx*2], ax
jmp case.0x412316.19
test al, al
je 0x412276
mov eax, dword [esp + 0x28]
movzx eax, ax
mov word [ebp + eax*2], dx
mov ax, word [edi + 0xa]
mov word [esi], ax
jmp case.0x412316.19
mov eax, dword [esp + 0x28]
and edx, ecx
movzx ecx, ax
movzx eax, word [ebp + edx*2]
mov word [ebp + ecx*2], ax
movzx eax, word [edi + 0xa]
mov word [esi], ax
jmp case.0x412316.19
mov ecx, dword [esp + 0x4c]
movzx eax, al
add eax, dword [esp + 0x1c]
lea esi, [ecx + eax*2]
mov ecx, 0x7fff
movzx eax, word [esi]
mov edx, eax
cmp ax, cx
je 0x4122f6
shr ax, 0xf
cmp byte [esp + 0x12], 0
je 0x4122d1
test al, al
jne 0x4122e3
mov ax, word [edi + 0xa]
and edx, ecx
mov word [ebp + edx*2], ax
jmp case.0x412316.19
test al, al
je 0x4122e3
mov eax, dword [esp + 0x28]
movzx eax, ax
mov word [ebp + eax*2], dx
jmp 0x4122f6
mov eax, dword [esp + 0x28]
and edx, ecx
movzx ecx, ax
mov ax, word [ebp + edx*2]
mov word [ebp + ecx*2], ax
mov ax, word [edi + 0xa]
mov word [esi], ax
movzx eax, byte [edi + 6]
add eax, 0xfffffff0
cmp eax, 0x95
ja case.0x412316.19
movzx eax, byte [eax + 0x4124b8]
jmp dword [eax*4 + 0x41249c]
mov ecx, dword [esp + 0x14]
movzx eax, word [edi + 0xa]
mov edx, dword [esp + 0x18]
mov word [ecx - 2], ax
movzx eax, word [edi + 0xa]
mov word [edx - 0x200], ax
cmp byte [edi + 6], 0xa4
je 0x4123d8
jmp 0x412348
mov ecx, dword [esp + 0x14]
movzx eax, word [edi + 0xa]
mov word [ecx], ax
mov ecx, dword [esp + 0x18]
movzx eax, word [edi + 0xa]
mov word [ecx], ax
jmp case.0x412316.19
mov ecx, dword [esp + 0x14]
movzx eax, word [edi + 0xa]
mov edx, dword [esp + 0x18]
mov word [ecx - 0xa], ax
movzx eax, word [edi + 0xa]
mov word [edx - 0x21c], ax
cmp byte [edi + 6], 0xa0
je 0x4123d8
jmp 0x412383
mov ecx, dword [esp + 0x14]
movzx eax, word [edi + 0xa]
mov word [ecx - 8], ax
mov ecx, dword [esp + 0x18]
movzx eax, word [edi + 0xa]
mov word [ecx - 4], ax
jmp case.0x412316.19
mov ecx, dword [esp + 0x14]
movzx eax, word [edi + 0xa]
mov edx, dword [esp + 0x18]
mov word [ecx - 6], ax
movzx eax, word [edi + 0xa]
mov word [edx - 0x236], ax
cmp byte [edi + 6], 0xa2
je 0x4123d8
jmp 0x4123c0
mov ecx, dword [esp + 0x14]
movzx eax, word [edi + 0xa]
mov word [ecx - 4], ax
mov ecx, dword [esp + 0x18]
movzx eax, word [edi + 0xa]
mov word [ecx - 0x36], ax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add ecx, 0x100
add eax, 0x200
add edx, 0x400
mov dword [esp + 0x1c], ecx
inc ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
cmp ecx, 0xff00
jle 0x4121a4
mov ecx, dword [esp + 0x50]
add edi, 0xc
sub dword [esp + 0x24], 1
mov esi, 0x7ff9
mov edx, dword [esp + 0x54]
jne 0x411cf3
push dword [esp + 0x34]
call fcn.004b6209
mov esi, dword [0x50a950]
add esp, 4
cmp byte [esi + 0x14a], 0
je 0x412455
push 0xa1
mov dl, 0xa0
mov cl, 0x10
call fcn.00412550
add esp, 4
cmp byte [esi + 0x15e], 0
je 0x41246f
push 0xa3
mov dl, 0xa2
mov cl, 0x11
call fcn.00412550
add esp, 4
cmp byte [esi + 0x172], 0
je 0x412489
push 0xa5
mov dl, 0xa4
mov cl, 0x12
call fcn.00412550
add esp, 4
mov cl, byte [esp + 0x11]
xor dl, dl
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x48
jmp fcn.004125f0