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

Disassembly:
sub esp, 0x38
mov eax, dword [0x4e66e8]
mov dword [esp + 0x24], eax
mov al, byte [0x4e657f]
or al, byte [0x4e657e]
push ebp
mov ebp, edx
mov byte [esp + 5], al
mov dword [esp + 0x14], ebp
jne 0x411ad1
xor dl, dl
xor cl, cl
pop ebp
add esp, 0x38
jmp fcn.004126c0
push ebx
push esi
mov esi, dword [0x4e8a84]
push edi
test esi, esi
jne 0x411c44
push 0x1400
call fcn.004b6773
add esp, 4
mov dword [0x4e8a84], eax
test eax, eax
je 0x411c38
push 0x2800
call fcn.004b6773
add esp, 4
mov dword [0x4e8a88], eax
test eax, eax
je 0x411c38
push 0x20000
call fcn.004b6773
add esp, 4
mov dword [0x4e8a78], eax
test eax, eax
je 0x411c38
push 0x40000
call fcn.004b6773
add esp, 4
mov dword [0x4e8a7c], eax
test eax, eax
je 0x411c38
mov eax, dword [0x4e66ec]
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 [0x4e8a80], ebx
test ebx, ebx
je 0x411c38
push 0x1400
push esi
mov esi, dword [0x4e8a84]
push esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [0x4e8a88]
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], 0x4e4248
mov dword [esi + 0x190], 0x4e424c
mov dword [esi + 0xb40], 0x4e4250
jmp 0x411c50
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x38
jmp fcn.00412d30
mov edi, dword [0x4e8a88]
mov ebx, dword [0x4e8a80]
lea eax, [esi + 9]
mov ecx, pe_nt_image_headers32
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, 0x4e310c
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, 0x4e3174
jl 0x411cc0
mov edi, dword [0x4e8a78]
mov eax, 0x7fff7fff
mov ecx, 0x8000
rep stosd dword es:[edi], eax
mov edi, dword [0x4e8a7c]
mov ecx, 0x10000
rep stosd dword es:[edi], eax
xor eax, eax
cmp dword [0x4e66ec], eax
jle 0x411d1d
mov ecx, 0x7fff
nop
mov word [ebx + eax*2], cx
inc eax
cmp eax, dword [0x4e66ec]
jl 0x411d10
movzx eax, word [0x4e66f8]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b6773
mov dword [esp + 0x34], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x28], ebx
add esp, 4
mov dword [esp + 0x1c], eax
test ebp, ebp
jle 0x4124f3
mov ecx, dword [esp + 0x30]
mov edi, dword [0x4e8a84]
add ecx, 6
mov ebp, dword [0x4e8a88]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov esi, dword [edx + eax*4]
mov al, byte [esi + 0x12]
sub al, 1
cmp al, 2
ja 0x411dca
cmp byte [0x4e5c20], 0
je 0x411ed4
cmp word [esi + 6], 0
jne 0x411dca
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x411dc6
nop dword [eax + eax]
mov ecx, ebx
call fcn.0048f870
test al, al
jne 0x411ec4
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x411da0
mov edi, dword [0x4e8a84]
mov ebp, dword [0x4e8a88]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, ecx
jl 0x411d70
test ebx, ebx
je 0x4124f3
mov ebp, dword [esp + 0x30]
push 0x411760
push 0xc
push ebx
push ebp
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
test ebx, ebx
jle 0x4124f3
mov eax, dword [0x4e8a7c]
mov ecx, dword [0x4e8a78]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
lea esi, [eax + 0x270]
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, [ebp + 0xa]
mov ebp, dword [0x4e8a80]
nop dword [eax + eax]
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 0x411eb3
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 0x4121f5
xor cl, cl
jmp 0x412257
mov edi, dword [0x4e8a84]
mov ebp, dword [0x4e8a88]
mov ebx, dword [esp + 0x24]
cmp word [esi + 6], 0
je 0x411f19
mov al, byte [esi + 0x19]
test al, al
je 0x411f2d
mov al, byte [esi + 0x10]
test al, al
jne 0x411ef0
cmp word [esi + 8], 0
je 0x411f2d
movzx ecx, word [esi + 8]
mov edx, 0x1ff
cmp cx, dx
ja 0x411f2d
test al, al
jne 0x411f36
mov eax, ecx
lea eax, [eax + eax*4]
lea ebx, [eax*4]
add ebx, ebp
mov byte [ebx + 0x13], 1
jmp 0x412017
mov eax, dword [esi + 0x20]
test eax, eax
je 0x411f2d
cmp byte [eax + 0x1c], 0
jne 0x411ee2
mov eax, dword [eax + 8]
test eax, eax
jne 0x411f20
mov ecx, dword [esp + 0x20]
jmp 0x411dca
movzx ecx, al
lea eax, [ecx + ecx*4]
lea ebx, [edi + eax*4]
sub ecx, 0x10
je 0x411fd9
sub ecx, 1
je 0x411f99
sub ecx, 1
jne 0x412017
mov byte [edi + 0xcda], 1
mov byte [edi + 0xcee], 1
mov byte [ebp + 0x46a], 1
mov byte [ebp + 0x186a], 1
cmp byte [esi + 0x16], cl
je 0x412017
mov byte [edi + 0xcdb], 1
mov byte [edi + 0xcef], 1
mov byte [ebp + 0x46b], 1
mov byte [ebp + 0x186b], 1
jmp 0x412017
mov byte [edi + 0xcb2], 1
mov byte [edi + 0xcc6], 1
mov byte [ebp + 0x24e], 1
mov byte [ebp + 0x164e], 1
cmp byte [esi + 0x16], 0
je 0x412017
mov byte [edi + 0xcb3], 1
mov byte [edi + 0xcc7], 1
mov byte [ebp + 0x24f], 1
mov byte [ebp + 0x164f], 1
jmp 0x412017
mov byte [edi + 0xc8a], 1
mov byte [edi + 0xc9e], 1
mov byte [ebp + 0x352], 1
mov byte [ebp + 0x1842], 1
cmp byte [esi + 0x16], 0
je 0x412017
mov byte [edi + 0xc8b], 1
mov byte [edi + 0xc9f], 1
mov byte [ebp + 0x353], 1
mov byte [ebp + 0x1843], 1
mov byte [ebx + 0xa], 1
cmp byte [esi + 0x16], 0
movzx eax, word [esi + 4]
mov dword [esp + 0x2c], eax
je 0x412036
or eax, 0x8000
mov byte [ebx + 0xb], 1
mov dword [esp + 0x2c], eax
mov dl, byte [esi + 0x11]
test dl, dl
jne 0x412048
cmp word [esi + 0xa], 0
jne 0x412048
xor al, al
jmp 0x41204a
mov al, 1
cmp byte [ebx + 8], 0
je 0x4120d7
cmp byte [esi + 0xf], 0
jne 0x4120d7
test al, al
jne 0x4120db
test byte [esi + 0x13], 2
jne 0x412075
mov dx, word [esi + 8]
mov cl, byte [esi + 0x10]
push 0
call fcn.004118d0
add esp, 4
cmp byte [esi + 0xf], 0
jne 0x412085
test byte [esi + 0x13], 2
je 0x412085
or byte [ebx + 0xc], 1
movzx ecx, word [esi + 6]
mov eax, dword [esp + 0x2c]
mov edx, ecx
mov ebx, dword [esp + 0x24]
test cx, cx
mov ecx, dword [esp + 0x28]
movzx eax, ax
cmove edx, eax
inc ebx
mov dword [esp + 0x24], ebx
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 byte [ecx - 1], al
add ecx, 0xc
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
jmp 0x411dca
test al, al
je 0x412075
test dl, dl
je 0x4121aa
movzx ecx, dl
lea eax, [ecx + ecx*4]
cmp byte [edi + eax*4 + 8], 0
lea eax, [edi + eax*4]
je 0x412192
sub dl, 0x10
cmp dl, 2
ja 0x412188
sub ecx, 0x10
je 0x412163
sub ecx, 1
je 0x41213e
sub ecx, 1
jne 0x4121e0
mov byte [edi + 0x171], 2
mov byte [edi + 0xcd9], 2
mov byte [edi + 0xced], 2
mov byte [ebp + 0x469], 2
mov byte [ebp + 0x1869], 2
jmp 0x4121e0
mov byte [edi + 0x15d], 2
mov byte [edi + 0xcb1], 2
mov byte [edi + 0xcc5], 2
mov byte [ebp + 0x24d], 2
mov byte [ebp + 0x164d], 2
jmp 0x4121e0
mov byte [edi + 0x149], 2
mov byte [edi + 0xc89], 2
mov byte [edi + 0xc9d], 2
mov byte [ebp + 0x351], 2
mov byte [ebp + 0x1841], 2
jmp 0x4121e0
lea eax, [ecx + ecx*4]
mov byte [edi + eax*4 + 9], 1
jmp 0x4121e0
mov byte [eax + 9], 1
test byte [esi + 0x13], 1
je 0x4121e0
movzx eax, byte [esi + 0x11]
lea eax, [eax + eax*4]
or byte [edi + eax*4 + 0xc], 1
jmp 0x4121e0
movzx eax, word [esi + 0xa]
lea eax, [eax + eax*4]
mov byte [ebp + eax*4 + 9], 1
cmp byte [ebp + eax*4 + 8], 0
jne 0x4121e0
test byte [esi + 0x13], 1
je 0x4121cf
movzx eax, word [esi + 0xa]
lea eax, [eax + eax*4]
or byte [ebp + eax*4 + 0xc], 1
movzx eax, word [esi + 0xa]
lea eax, [eax + eax*4]
mov byte [ebp + eax*4 + 0x13], 1
nop dword [eax + eax]
movzx eax, word [ebx + 6]
mov word [esi + 0xc], ax
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
jmp 0x411dc2
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 0x4124b6
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.0x4123e3.19
mov cl, byte [eax - 6]
test cl, cl
je 0x4122d4
movzx edx, cl
mov ecx, edx
and ecx, ebx
cmp edx, ecx
jne case.0x4123e3.19
mov cl, byte [eax - 4]
test cl, cl
jne 0x412363
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 0x41230c
mov cx, word [eax]
mov word [edi], cx
jmp case.0x4123e3.19
shr cx, 0xf
cmp byte [esp + 0x12], 0
je 0x41232a
test cl, cl
jne 0x412345
mov cx, word [eax]
and esi, edx
mov word [ebp + esi*2], cx
jmp case.0x4123e3.19
test cl, cl
je 0x412345
mov ecx, dword [esp + 0x28]
movzx ecx, cx
mov word [ebp + ecx*2], si
mov cx, word [eax]
mov word [edi], cx
jmp case.0x4123e3.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.0x4123e3.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 0x4123c3
shr cx, 0xf
cmp byte [esp + 0x12], 0
je 0x41239e
test cl, cl
jne 0x4123b0
mov cx, word [eax]
and esi, edx
mov word [ebp + esi*2], cx
jmp case.0x4123e3.19
test cl, cl
je 0x4123b0
mov ecx, dword [esp + 0x28]
movzx ecx, cx
mov word [ebp + ecx*2], si
jmp 0x4123c3
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.0x4123e3.19
movzx ecx, byte [ecx + 0x412584]
jmp dword [ecx*4 + 0x412568]
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 0x4124aa
movzx ecx, word [eax]
mov word [edx], cx
mov edx, esi
movzx ecx, word [eax]
mov word [edx], cx
jmp case.0x4123e3.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.0x4123e3.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 0x4124aa
jmp 0x41245b
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.0x4123e3.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 0x4124aa
jmp 0x412494
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 0x412272
mov esi, dword [esp + 0x34]
add eax, 0xc
sub dword [esp + 0x24], 1
jne 0x411e40
push dword [esp + 0x30]
call fcn.004b677c
mov esi, dword [0x4e8a84]
add esp, 4
cmp byte [esi + 0x14a], 0
je 0x41251f
push 0xa1
mov dl, 0xa0
mov cl, 0x10
call fcn.00412620
add esp, 4
cmp byte [esi + 0x15e], 0
je 0x412539
push 0xa3
mov dl, 0xa2
mov cl, 0x11
call fcn.00412620
add esp, 4
cmp byte [esi + 0x172], 0
je 0x412553
push 0xa5
mov dl, 0xa4
mov cl, 0x12
call fcn.00412620
add esp, 4
mov cl, byte [esp + 0x11]
xor dl, dl
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x38
jmp fcn.004126c0