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

Disassembly:
sub esp, 0x38
mov al, byte [0x4e567e]
or al, byte [0x4e567d]
push ebp
mov ebp, dword [0x4e56d4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
mov byte [esp + 5], al
jne 0x411ad0
xor dl, dl
xor cl, cl
pop ebp
add esp, 0x38
jmp fcn.004126b0
push ebx
push esi
mov esi, dword [0x4e7a74]
push edi
test esi, esi
jne 0x411c43
push 0x1400
call fcn.004b658e
add esp, 4
mov dword [0x4e7a74], eax
test eax, eax
je 0x411c37
push 0x2800
call fcn.004b658e
add esp, 4
mov dword [0x4e7a78], eax
test eax, eax
je 0x411c37
push 0x20000
call fcn.004b658e
add esp, 4
mov dword [0x4e7a68], eax
test eax, eax
je 0x411c37
push 0x40000
call fcn.004b658e
add esp, 4
mov dword [0x4e7a6c], eax
test eax, eax
je 0x411c37
mov eax, dword [0x4e56d8]
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 [0x4e7a70], ebx
test ebx, ebx
je 0x411c37
push 0x1400
push esi
mov esi, dword [0x4e7a74]
push esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [0x4e7a78]
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], 0x4e3268
mov dword [esi + 0x190], 0x4e326c
mov dword [esi + 0xb40], 0x4e3270
jmp 0x411c4f
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x38
jmp fcn.00412d20
mov edi, dword [0x4e7a78]
mov ebx, dword [0x4e7a70]
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 0x411c60
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 0x411c90
mov ecx, 0x4e212c
mov esi, 0x1fe
nop dword [eax + eax]
movzx edx, word [ecx]
lea eax, [edx - 1]
cmp ax, si
ja 0x411cd5
mov eax, edx
lea eax, [eax + eax*4]
mov byte [edi + eax*4 + 0x13], 1
add ecx, 8
cmp ecx, 0x4e2194
jl 0x411cc0
mov edi, dword [0x4e7a68]
mov eax, 0x7fff7fff
mov ecx, 0x8000
rep stosd dword es:[edi], eax
mov edi, dword [0x4e7a6c]
mov ecx, 0x10000
rep stosd dword es:[edi], eax
xor eax, eax
cmp dword [0x4e56d8], eax
jle 0x411d1d
mov ecx, 0x7fff
nop
mov word [ebx + eax*2], cx
inc eax
cmp eax, dword [0x4e56d8]
jl 0x411d10
movzx eax, word [0x4e56e4]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b658e
mov dword [esp + 0x34], eax
xor edx, edx
add esp, 4
mov dword [esp + 0x24], edx
mov dword [eax], 0
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], eax
jle 0x4124e7
mov ecx, dword [esp + 0x30]
mov edi, dword [0x4e7a74]
add ecx, 6
mov ebx, dword [0x4e7a78]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], 0x1ff
mov esi, dword [ebp + eax*4]
mov al, byte [esi + 0x12]
sub al, 1
cmp al, 2
ja 0x411fca
cmp byte [0x4e4c0c], 0
je 0x411db9
mov ecx, esi
call fcn.0040e430
mov edi, dword [0x4e7a74]
mov ebx, dword [0x4e7a78]
mov edx, dword [esp + 0x24]
test al, al
je 0x411fc6
cmp word [esi + 6], 0
je 0x411e01
mov al, byte [esi + 0x19]
test al, al
je 0x411fc6
mov al, byte [esi + 0x10]
test al, al
jne 0x411ddd
cmp word [esi + 8], 0
je 0x411fc6
movzx ecx, word [esi + 8]
cmp cx, word [esp + 0x34]
ja 0x411fc6
test al, al
jne 0x411e22
mov eax, ecx
lea eax, [eax + eax*4]
lea ebp, [ebx + eax*4]
mov byte [ebp + 0x13], 1
jmp 0x411f03
mov eax, dword [esi + 0x20]
test eax, eax
je 0x411fc6
nop dword [eax]
cmp byte [eax + 0x1c], 0
jne 0x411dcb
mov eax, dword [eax + 8]
test eax, eax
jne 0x411e10
jmp 0x411fc6
movzx ecx, al
lea eax, [ecx + ecx*4]
lea ebp, [edi + eax*4]
sub ecx, 0x10
je 0x411ec5
sub ecx, 1
je 0x411e85
sub ecx, 1
jne 0x411f03
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 0x411f03
mov byte [edi + 0xcdb], 1
mov byte [edi + 0xcef], 1
mov byte [ebx + 0x46b], 1
mov byte [ebx + 0x186b], 1
jmp 0x411f03
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 0x411f03
mov byte [edi + 0xcb3], 1
mov byte [edi + 0xcc7], 1
mov byte [ebx + 0x24f], 1
mov byte [ebx + 0x164f], 1
jmp 0x411f03
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 0x411f03
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 + 0x2c], eax
je 0x411f22
or eax, 0x8000
mov byte [ebp + 0xb], 1
mov dword [esp + 0x2c], eax
mov dl, byte [esi + 0x11]
test dl, dl
jne 0x411f34
cmp word [esi + 0xa], 0
jne 0x411f34
xor al, al
jmp 0x411f36
mov al, 1
cmp byte [ebp + 8], 0
je 0x4120c4
cmp byte [esi + 0xf], 0
jne 0x4120c4
test al, al
jne 0x4120cc
test byte [esi + 0x13], 2
jne 0x411f69
mov dx, word [esi + 8]
mov cl, byte [esi + 0x10]
push 0
call fcn.004118d0
add esp, 4
cmp byte [esi + 0xf], 0
jne 0x411f79
test byte [esi + 0x13], 2
je 0x411f79
or byte [ebp + 0xc], 1
movzx ecx, word [esi + 6]
mov eax, dword [esp + 0x2c]
mov edx, ecx
movzx eax, ax
test cx, cx
mov ecx, dword [esp + 0x28]
cmove edx, eax
mov word [ecx + 4], dx
mov al, byte [esi + 0x10]
mov edx, dword [esp + 0x24]
mov byte [ecx], al
inc edx
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 + 0x24], edx
mov dword [esp + 0x28], ecx
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, ecx
jl 0x411d80
test edx, edx
je 0x4124e7
mov ebx, dword [esp + 0x30]
push 0x411760
push 0xc
push edx
push ebx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
cmp dword [esp + 0x24], 0
jle 0x4124e7
mov eax, dword [0x4e7a6c]
mov ecx, dword [0x4e7a68]
mov ebp, dword [0x4e7a70]
mov dword [esp + 0x40], eax
lea esi, [eax + 0x270]
mov dword [esp + 0x44], ecx
lea eax, [ecx + 0x14a]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov eax, 0xfffffeb6
sub eax, ecx
mov dword [esp + 0x3c], eax
lea eax, [ebx + 0xa]
nop
movzx ecx, word [eax]
mov bl, byte [eax - 6]
mov dx, cx
and ecx, 0x7fff
shr dx, 0xf
mov dword [esp + 0x28], ecx
mov ecx, dword [eax - 0xa]
mov word [esp + 0x12], dx
mov edx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x10], bl
test bl, bl
je 0x4120b3
mov cl, bl
and cl, 0xc0
movzx edx, cl
mov cl, bl
neg edx
sbb edx, edx
and edx, 8
mov esi, edx
or esi, 1
and cl, 0xc
mov cl, bl
cmove esi, edx
mov edi, esi
or edi, 4
and cl, 0x30
mov cl, bl
cmove edi, esi
mov esi, dword [esp + 0x34]
mov edx, edi
or edx, 2
and cl, 3
cmove edx, edi
or dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
cmp byte [eax - 5], 0
je 0x4121e9
xor cl, cl
jmp 0x41224b
test al, al
je 0x411f69
test dl, dl
je 0x41219e
movzx ecx, dl
lea eax, [ecx + ecx*4]
cmp byte [edi + eax*4 + 8], 0
lea eax, [edi + eax*4]
je 0x412186
sub dl, 0x10
cmp dl, 2
ja 0x41217c
sub ecx, 0x10
je 0x412157
sub ecx, 1
je 0x41212f
sub ecx, 1
jne 0x4121d0
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 0x4121d0
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 0x4121d0
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 0x4121d0
lea eax, [ecx + ecx*4]
mov byte [edi + eax*4 + 9], 1
jmp 0x4121d0
mov byte [eax + 9], 1
test byte [esi + 0x13], 1
je 0x4121d0
movzx eax, byte [esi + 0x11]
lea eax, [eax + eax*4]
or byte [edi + eax*4 + 0xc], 1
jmp 0x4121d0
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 0x4121d0
test byte [esi + 0x13], 1
je 0x4121c3
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
movzx eax, word [ebp + 6]
mov edx, dword [esp + 0x24]
mov word [esi + 0xc], ax
movzx eax, word [esi + 4]
mov word [ebp + 6], ax
jmp 0x411fc2
mov ecx, edx
and cl, 8
neg cl
sbb cl, cl
and ecx, 0xffffffc0
mov dword [esp + 0x1c], ecx
or cl, 0xc
movzx ebx, cl
and dl, 1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
movzx ecx, cl
cmove ebx, ecx
mov cl, bl
or cl, 3
and dl, 2
movzx ecx, cl
mov dword [esp + 0x1c], ecx
mov edx, ecx
movzx ecx, bl
cmove edx, ecx
and byte [esp + 0x20], 4
mov cl, dl
or cl, 0x30
cmp byte [esp + 0x20], 0
movzx ebx, cl
movzx ecx, dl
cmove ebx, ecx
or bl, byte [esp + 0x10]
not bl
mov dword [esp + 0x20], ebx
mov ecx, ebx
xor ebx, ebx
movzx edi, cl
mov ecx, dword [esp + 0x38]
mov edx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
test ebx, edi
jne 0x4124aa
mov cl, bl
and cl, 0xc0
movzx edx, cl
mov cl, bl
neg edx
sbb edx, edx
and edx, 8
mov esi, edx
or esi, 1
and cl, 0xc
mov cl, bl
cmove esi, edx
mov edi, esi
or edi, 4
and cl, 0x30
mov cl, bl
cmove edi, esi
mov edx, edi
or edx, 2
and cl, 3
mov ecx, dword [esp + 0x2c]
cmove edx, edi
and edx, ecx
cmp ecx, edx
jne case.0x4123d7.19
mov cl, byte [eax - 6]
test cl, cl
je 0x4122c8
movzx edx, cl
mov ecx, edx
and ecx, ebx
cmp edx, ecx
jne case.0x4123d7.19
mov cl, byte [eax - 4]
test cl, cl
jne 0x412357
movzx ecx, word [eax - 2]
add ecx, dword [esp + 0x3c]
add ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
lea edi, [edx + ecx*2]
mov edx, 0x7fff
movzx ecx, word [edi]
mov esi, ecx
cmp cx, dx
jne 0x412300
mov cx, word [eax]
mov word [edi], cx
jmp case.0x4123d7.19
shr cx, 0xf
cmp byte [esp + 0x12], 0
je 0x41231e
test cl, cl
jne 0x412339
mov cx, word [eax]
and esi, edx
mov word [ebp + esi*2], cx
jmp case.0x4123d7.19
test cl, cl
je 0x412339
mov ecx, dword [esp + 0x28]
movzx ecx, cx
mov word [ebp + ecx*2], si
mov cx, word [eax]
mov word [edi], cx
jmp case.0x4123d7.19
mov ecx, dword [esp + 0x28]
and esi, edx
movzx edx, cx
movzx ecx, word [ebp + esi*2]
mov word [ebp + edx*2], cx
movzx ecx, word [eax]
mov word [edi], cx
jmp case.0x4123d7.19
mov edx, dword [esp + 0x44]
movzx ecx, cl
add ecx, dword [esp + 0x1c]
lea edi, [edx + ecx*2]
mov edx, 0x7fff
movzx ecx, word [edi]
mov esi, ecx
cmp cx, dx
je 0x4123b7
shr cx, 0xf
cmp byte [esp + 0x12], 0
je 0x412392
test cl, cl
jne 0x4123a4
mov cx, word [eax]
and esi, edx
mov word [ebp + esi*2], cx
jmp case.0x4123d7.19
test cl, cl
je 0x4123a4
mov ecx, dword [esp + 0x28]
movzx ecx, cx
mov word [ebp + ecx*2], si
jmp 0x4123b7
mov ecx, dword [esp + 0x28]
and esi, edx
movzx edx, cx
mov cx, word [ebp + esi*2]
mov word [ebp + edx*2], cx
mov cx, word [eax]
mov word [edi], cx
movzx ecx, byte [eax - 4]
add ecx, 0xfffffff0
cmp ecx, 0x95
ja case.0x4123d7.19
movzx ecx, byte [ecx + 0x412578]
jmp dword [ecx*4 + 0x41255c]
mov edx, dword [esp + 0x14]
movzx ecx, word [eax]
mov esi, dword [esp + 0x18]
mov word [edx - 2], cx
movzx ecx, word [eax]
mov word [esi - 0x200], cx
cmp byte [eax - 4], 0xa4
je 0x41249e
movzx ecx, word [eax]
mov word [edx], cx
mov edx, esi
movzx ecx, word [eax]
mov word [edx], cx
jmp case.0x4123d7.19
mov edx, dword [esp + 0x14]
movzx ecx, word [eax]
mov word [edx], cx
mov edx, dword [esp + 0x18]
movzx ecx, word [eax]
mov word [edx], cx
jmp case.0x4123d7.19
mov edx, dword [esp + 0x14]
movzx ecx, word [eax]
mov esi, dword [esp + 0x18]
mov word [edx - 0xa], cx
movzx ecx, word [eax]
mov word [esi - 0x21c], cx
cmp byte [eax - 4], 0xa0
je 0x41249e
jmp 0x41244f
mov edx, dword [esp + 0x14]
movzx ecx, word [eax]
mov word [edx - 8], cx
mov edx, dword [esp + 0x18]
movzx ecx, word [eax]
mov word [edx - 4], cx
jmp case.0x4123d7.19
mov edx, dword [esp + 0x14]
movzx ecx, word [eax]
mov esi, dword [esp + 0x18]
mov word [edx - 6], cx
movzx ecx, word [eax]
mov word [esi - 0x236], cx
cmp byte [eax - 4], 0xa2
je 0x41249e
jmp 0x412488
mov edx, dword [esp + 0x14]
movzx ecx, word [eax]
mov word [edx - 4], cx
mov edx, dword [esp + 0x18]
movzx ecx, word [eax]
mov word [edx - 0x36], cx
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add edx, 0x100
add ecx, 0x200
add esi, 0x400
mov dword [esp + 0x1c], edx
inc ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
cmp edx, 0xff00
jle 0x412266
mov esi, dword [esp + 0x34]
add eax, 0xc
sub dword [esp + 0x24], 1
jne 0x412040
push dword [esp + 0x30]
call fcn.004b6597
mov esi, dword [0x4e7a74]
add esp, 4
cmp byte [esi + 0x14a], 0
je 0x412513
push 0xa1
mov dl, 0xa0
mov cl, 0x10
call fcn.00412610
add esp, 4
cmp byte [esi + 0x15e], 0
je 0x41252d
push 0xa3
mov dl, 0xa2
mov cl, 0x11
call fcn.00412610
add esp, 4
cmp byte [esi + 0x172], 0
je 0x412547
push 0xa5
mov dl, 0xa4
mov cl, 0x12
call fcn.00412610
add esp, 4
mov cl, byte [esp + 0x11]
xor dl, dl
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x38
jmp fcn.004126b0