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

Disassembly:
sub esp, 0x54
mov eax, dword [0x4e754c]
mov dword [esp + 0x1c], eax
mov al, byte [0x4e74f7]
or al, byte [0x4e74f6]
push ebp
mov ebp, edx
mov byte [esp + 5], al
mov dword [esp + 0x1c], ebp
jne 0x411d11
xor dl, dl
xor cl, cl
pop ebp
add esp, 0x54
jmp fcn.00412a30
push ebx
push esi
mov esi, dword [0x4e98a8]
push edi
test esi, esi
jne 0x411e84
push 0x1400
call fcn.004b7796
add esp, 4
mov dword [0x4e98a8], eax
test eax, eax
je 0x411e78
push 0x2800
call fcn.004b7796
add esp, 4
mov dword [0x4e98ac], eax
test eax, eax
je 0x411e78
push 0x20000
call fcn.004b7796
add esp, 4
mov dword [0x4e989c], eax
test eax, eax
je 0x411e78
push 0x40000
call fcn.004b7796
add esp, 4
mov dword [0x4e98a0], eax
test eax, eax
je 0x411e78
mov eax, dword [0x4e7550]
add eax, eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [0x4e98a4], ebx
test ebx, ebx
je 0x411e78
push 0x1400
push esi
mov esi, dword [0x4e98a8]
push esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [0x4e98ac]
push 0x2800
push 0
push edi
call sub.VCRUNTIME140.dll_memset
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], 0x4e459c
mov dword [esi + 0x190], 0x4e5264
mov dword [esi + 0xb40], 0x4e5268
jmp 0x411e90
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x54
jmp fcn.00413060
mov edi, dword [0x4e98ac]
mov ebx, dword [0x4e98a4]
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 0x411ea0
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 0x411ed0
mov ecx, 0x4e410c
mov esi, 0x1fe
nop dword [eax + eax]
movzx edx, word [ecx]
lea eax, [edx - 1]
cmp ax, si
ja 0x411f15
mov eax, edx
lea eax, [eax + eax*4]
mov byte [edi + eax*4 + 0x13], 1
add ecx, 8
cmp ecx, 0x4e4174
jl 0x411f00
mov edi, dword [0x4e989c]
mov eax, 0x7fff7fff
mov ecx, 0x8000
rep stosd dword es:[edi], eax
mov edi, dword [0x4e98a0]
mov ecx, 0x10000
rep stosd dword es:[edi], eax
xor eax, eax
cmp dword [0x4e7550], eax
jle 0x411f5d
mov ecx, 0x7fff
nop
mov word [ebx + eax*2], cx
inc eax
cmp eax, dword [0x4e7550]
jl 0x411f50
movzx eax, word [0x4e755c]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b7796
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 0x412861
mov ecx, dword [esp + 0x3c]
mov edx, 0x1ff
mov edi, dword [0x4e98a8]
add ecx, 6
mov ebx, dword [0x4e98ac]
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 0x412006
cmp byte [0x4e6a6c], 0
je 0x4120f1
cmp word [esi + 6], 0
jne 0x412006
mov ebp, dword [esi + 0x20]
test ebp, ebp
je 0x412002
nop
mov ecx, ebp
call fcn.00490110
test al, al
jne 0x4120dc
mov ebp, dword [ebp + 8]
test ebp, ebp
jne 0x411fe0
mov edi, dword [0x4e98a8]
mov ebx, dword [0x4e98ac]
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 0x411fb3
test esi, esi
je 0x412861
mov ebx, dword [esp + 0x3c]
push 0x4119c0
push 0xc
push esi
push ebx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
test esi, esi
jle 0x412861
mov ecx, dword [0x4e989c]
mov edi, ebx
mov eax, dword [0x4e98a0]
mov ebp, 0x7ff9
mov edx, dword [0x4e98a8]
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 [0x4e98ac]
mov dword [esp + 0x54], eax
mov eax, dword [0x4e98a4]
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 0x41247b
mov al, byte [edi + 6]
test al, al
je 0x412415
movzx eax, al
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
jmp 0x41241f
mov edi, dword [0x4e98a8]
mov edx, 0x1ff
mov ebx, dword [0x4e98ac]
mov ebp, dword [esp + 0x28]
cmp word [esi + 6], 0
je 0x412137
mov al, byte [esi + 0x19]
test al, al
je 0x412006
mov al, byte [esi + 0x10]
test al, al
jne 0x412115
cmp word [esi + 8], 0
je 0x412006
movzx ecx, word [esi + 8]
cmp cx, dx
ja 0x412006
test al, al
jne 0x412154
mov eax, ecx
lea eax, [eax + eax*4]
lea ebp, [ebx + eax*4]
mov byte [ebp + 0x13], 1
jmp 0x412235
mov eax, dword [esi + 0x20]
test eax, eax
je 0x412006
cmp byte [eax + 0x1c], 0
jne 0x412103
mov eax, dword [eax + 8]
test eax, eax
jne 0x412142
jmp 0x412006
movzx ecx, al
lea eax, [ecx + ecx*4]
lea ebp, [edi + eax*4]
sub ecx, 0x10
je 0x4121f7
sub ecx, 1
je 0x4121b7
sub ecx, 1
jne 0x412235
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 0x412235
mov byte [edi + 0xcdb], 1
mov byte [edi + 0xcef], 1
mov byte [ebx + 0x46b], 1
mov byte [ebx + 0x186b], 1
jmp 0x412235
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 0x412235
mov byte [edi + 0xcb3], 1
mov byte [edi + 0xcc7], 1
mov byte [ebx + 0x24f], 1
mov byte [ebx + 0x164f], 1
jmp 0x412235
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 0x412235
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 0x412254
or eax, 0x8000
mov byte [ebp + 0xb], 1
mov dword [esp + 0x38], eax
mov dl, byte [esi + 0x11]
test dl, dl
jne 0x412266
cmp word [esi + 0xa], 0
jne 0x412266
xor al, al
jmp 0x412268
mov al, 1
cmp byte [ebp + 8], 0
je 0x4122f5
cmp byte [esi + 0xf], 0
jne 0x4122f5
test al, al
jne 0x4122f9
test byte [esi + 0x13], 2
jne 0x412293
mov dx, word [esi + 8]
mov cl, byte [esi + 0x10]
push 0
call fcn.00411b10
add esp, 4
cmp byte [esi + 0xf], 0
jne 0x4122a3
test byte [esi + 0x13], 2
je 0x4122a3
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 0x41200a
test al, al
je 0x412293
test dl, dl
je 0x4123c8
movzx ecx, dl
lea eax, [ecx + ecx*4]
cmp byte [edi + eax*4 + 8], 0
lea eax, [edi + eax*4]
je 0x4123b0
sub dl, 0x10
cmp dl, 2
ja 0x4123a6
sub ecx, 0x10
je 0x412381
sub ecx, 1
je 0x41235c
sub ecx, 1
jne 0x412400
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 0x412400
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 0x412400
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 0x412400
lea eax, [ecx + ecx*4]
mov byte [edi + eax*4 + 9], 1
jmp 0x412400
mov byte [eax + 9], 1
test byte [esi + 0x13], 1
je 0x412400
movzx eax, byte [esi + 0x11]
lea eax, [eax + eax*4]
or byte [edi + eax*4 + 0xc], 1
jmp 0x412400
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 0x412400
test byte [esi + 0x13], 1
je 0x4123ed
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 0x412002
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 0x41246a
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 0x412457
cmp word [eax + 0xa], 0
movzx edx, cx
je 0x412466
lea esi, [eax + 0xc]
movzx eax, word [esi]
mov ecx, eax
mov edx, eax
cmp ax, bx
jne 0x412440
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 0x4124ce
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 0x4124d8
xor dl, dl
jmp 0x412524
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 0x412817
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 0x41280b
mov bl, byte [edi + 4]
test bl, bl
je 0x4125b4
movzx ecx, bl
mov eax, ecx
and eax, dword [esp + 0x18]
cmp ecx, eax
jne case.0x412751.19
mov bh, byte [edi + 6]
test bh, bh
je 0x4125c8
mov ecx, dword [esp + 0x50]
movzx eax, bh
add eax, dword [esp + 0x1c]
jmp 0x4125d6
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 0x412725
mov esi, dword [esp + 0x40]
and ecx, eax
mov ax, word [0x4e755c]
cmp si, ax
jae case.0x412751.19
cmp cx, ax
jae case.0x412751.19
mov ax, dx
shr ax, 0xf
cmp byte [esp + 0x12], 0
je 0x4126b9
test al, al
jne 0x412725
mov eax, dword [0x4e754c]
mov ebp, ecx
mov edx, dword [eax + ebp*4]
cmp byte [edx + 0x15], 0
je 0x41263e
mov ecx, dword [esp + 0x20]
jmp 0x41264b
mov eax, dword [esp + 0x30]
movzx ecx, byte [edx + 0xf]
movzx eax, al
and ecx, eax
test ecx, ecx
jne 0x412721
mov al, byte [edx + 0xe]
not al
test bl, al
jne 0x412721
mov eax, dword [edx]
mov esi, dword [edi]
not eax
test esi, eax
je 0x4126a4
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 0x412721
mov ecx, dword [esp + 0x38]
mov ax, word [edi + 0xa]
mov word [ecx + ebp*2], ax
mov ebp, dword [esp + 0x28]
jmp case.0x412751.19
test al, al
jne 0x4126d7
mov edx, dword [esp + 0x38]
mov ebp, 0x7fff
movzx eax, si
cmp word [edx + eax*2], bp
mov ebp, dword [esp + 0x28]
jne 0x412725
movzx edx, word [edx + ecx*2]
mov eax, 0x7fff
cmp dx, ax
je 0x412725
mov ecx, edx
and ecx, eax
mov eax, dword [0x4e754c]
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x15], 0
jne 0x412700
mov al, byte [ecx + 0xf]
or al, byte [esp + 0x30]
not al
test al, al
jne 0x412725
mov eax, dword [esp + 0x34]
not eax
test dword [ecx], eax
jne 0x412725
movzx eax, bl
not eax
test byte [ecx + 0xe], al
jne 0x412725
mov ecx, dword [esp + 0x38]
movzx eax, si
mov word [ecx + eax*2], dx
jmp 0x412725
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov ax, word [edi + 0xa]
mov word [ecx], ax
test bh, bh
je case.0x412751.19
movzx eax, byte [edi + 6]
add eax, 0xfffffff0
cmp eax, 0x95
ja case.0x412751.19
movzx eax, byte [eax + 0x4128f0]
jmp dword [eax*4 + 0x4128d4]
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.0x412751.19
movzx eax, word [edi + 0xa]
mov word [ebp], ax
movzx eax, word [edi + 0xa]
mov word [ecx], ax
jmp case.0x412751.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.0x412751.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.0x412751.19
jmp 0x4127c2
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.0x412751.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.0x412751.19
jmp 0x4127f7
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 0x412550
mov ecx, dword [esp + 0x5c]
add edi, 0xc
sub dword [esp + 0x24], 1
mov ebp, 0x7ff9
mov edx, dword [esp + 0x60]
jne 0x4120a0
push dword [esp + 0x3c]
call fcn.004b779f
mov esi, dword [0x4e98a8]
add esp, 4
cmp byte [esi + 0x14a], 0
je 0x41288d
push 0xa1
mov dl, 0xa0
mov cl, 0x10
call fcn.00412990
add esp, 4
cmp byte [esi + 0x15e], 0
je 0x4128a7
push 0xa3
mov dl, 0xa2
mov cl, 0x11
call fcn.00412990
add esp, 4
cmp byte [esi + 0x172], 0
je 0x4128c1
push 0xa5
mov dl, 0xa4
mov cl, 0x12
call fcn.00412990
add esp, 4
mov cl, byte [esp + 0x11]
xor dl, dl
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x54
jmp fcn.00412a30