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

Disassembly:
sub esp, 0x48
mov eax, dword [0x4e6540]
mov dword [esp + 0x1c], eax
mov al, byte [0x4e64eb]
or al, byte [0x4e64ea]
push ebp
mov ebp, edx
mov byte [esp + 5], al
mov dword [esp + 0x14], ebp
jne 0x411aa1
xor dl, dl
xor cl, cl
pop ebp
add esp, 0x48
jmp fcn.00412720
push ebx
push esi
mov esi, dword [0x4e88a0]
push edi
test esi, esi
jne 0x411c14
push 0x1400
call fcn.004b6d36
add esp, 4
mov dword [0x4e88a0], eax
test eax, eax
je 0x411c08
push 0x2800
call fcn.004b6d36
add esp, 4
mov dword [0x4e88a4], eax
test eax, eax
je 0x411c08
push 0x20000
call fcn.004b6d36
add esp, 4
mov dword [0x4e8894], eax
test eax, eax
je 0x411c08
push 0x40000
call fcn.004b6d36
add esp, 4
mov dword [0x4e8898], eax
test eax, eax
je 0x411c08
mov eax, dword [0x4e6544]
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 [0x4e889c], ebx
test ebx, ebx
je 0x411c08
push 0x1400
push esi
mov esi, dword [0x4e88a0]
push esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [0x4e88a4]
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], 0x4e359c
mov dword [esi + 0x190], 0x4e4264
mov dword [esi + 0xb40], 0x4e4268
jmp 0x411c20
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x48
jmp fcn.00412d50
mov edi, dword [0x4e88a4]
mov ebx, dword [0x4e889c]
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 0x411c31
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 0x411c60
mov ecx, 0x4e310c
mov esi, 0x1fe
nop dword [eax + eax]
movzx edx, word [ecx]
lea eax, [edx - 1]
cmp ax, si
ja 0x411ca5
mov eax, edx
lea eax, [eax + eax*4]
mov byte [edi + eax*4 + 0x13], 1
add ecx, 8
cmp ecx, 0x4e3174
jl 0x411c90
mov edi, dword [0x4e8894]
mov eax, 0x7fff7fff
mov ecx, 0x8000
rep stosd dword es:[edi], eax
mov edi, dword [0x4e8898]
mov ecx, 0x10000
rep stosd dword es:[edi], eax
xor eax, eax
cmp dword [0x4e6544], eax
jle 0x411ced
mov ecx, 0x7fff
nop
mov word [ebx + eax*2], cx
inc eax
cmp eax, dword [0x4e6544]
jl 0x411ce0
movzx eax, word [0x4e6550]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b6d36
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 0x412559
mov ecx, dword [esp + 0x34]
mov edx, 0x1ff
mov edi, dword [0x4e88a0]
add ecx, 6
mov ebx, dword [0x4e88a4]
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 0x411d96
cmp byte [0x4e5a60], 0
je 0x411e81
cmp word [esi + 6], 0
jne 0x411d96
mov ebp, dword [esi + 0x20]
test ebp, ebp
je 0x411d92
nop
mov ecx, ebp
call fcn.0048f3f0
test al, al
jne 0x411e6c
mov ebp, dword [ebp + 8]
test ebp, ebp
jne 0x411d70
mov edi, dword [0x4e88a0]
mov ebx, dword [0x4e88a4]
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 0x411d43
test esi, esi
je 0x412559
mov ebx, dword [esp + 0x34]
push 0x411730
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 0x412559
mov ecx, dword [0x4e8894]
mov edi, ebx
mov eax, dword [0x4e8898]
mov esi, 0x7ff9
mov edx, dword [0x4e88a0]
mov ebp, dword [0x4e889c]
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 [0x4e88a4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ecx
nop dword [eax]
nop dword [eax + eax]
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 0x41220c
mov al, byte [edi + 6]
test al, al
je 0x4121a5
movzx eax, al
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
jmp 0x4121af
mov edi, dword [0x4e88a0]
mov edx, 0x1ff
mov ebx, dword [0x4e88a4]
mov ebp, dword [esp + 0x20]
cmp word [esi + 6], 0
je 0x411ec7
mov al, byte [esi + 0x19]
test al, al
je 0x411d96
mov al, byte [esi + 0x10]
test al, al
jne 0x411ea5
cmp word [esi + 8], 0
je 0x411d96
movzx ecx, word [esi + 8]
cmp cx, dx
ja 0x411d96
test al, al
jne 0x411ee4
mov eax, ecx
lea eax, [eax + eax*4]
lea ebp, [ebx + eax*4]
mov byte [ebp + 0x13], 1
jmp 0x411fc5
mov eax, dword [esi + 0x20]
test eax, eax
je 0x411d96
cmp byte [eax + 0x1c], 0
jne 0x411e93
mov eax, dword [eax + 8]
test eax, eax
jne 0x411ed2
jmp 0x411d96
movzx ecx, al
lea eax, [ecx + ecx*4]
lea ebp, [edi + eax*4]
sub ecx, 0x10
je 0x411f87
sub ecx, 1
je 0x411f47
sub ecx, 1
jne 0x411fc5
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 0x411fc5
mov byte [edi + 0xcdb], 1
mov byte [edi + 0xcef], 1
mov byte [ebx + 0x46b], 1
mov byte [ebx + 0x186b], 1
jmp 0x411fc5
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 0x411fc5
mov byte [edi + 0xcb3], 1
mov byte [edi + 0xcc7], 1
mov byte [ebx + 0x24f], 1
mov byte [ebx + 0x164f], 1
jmp 0x411fc5
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 0x411fc5
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 0x411fe4
or eax, 0x8000
mov byte [ebp + 0xb], 1
mov dword [esp + 0x30], eax
mov dl, byte [esi + 0x11]
test dl, dl
jne 0x411ff6
cmp word [esi + 0xa], 0
jne 0x411ff6
xor al, al
jmp 0x411ff8
mov al, 1
cmp byte [ebp + 8], 0
je 0x412085
cmp byte [esi + 0xf], 0
jne 0x412085
test al, al
jne 0x412089
test byte [esi + 0x13], 2
jne 0x412023
mov dx, word [esi + 8]
mov cl, byte [esi + 0x10]
push 0
call fcn.004118a0
add esp, 4
cmp byte [esi + 0xf], 0
jne 0x412033
test byte [esi + 0x13], 2
je 0x412033
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 0x411d9a
test al, al
je 0x412023
test dl, dl
je 0x412158
movzx ecx, dl
lea eax, [ecx + ecx*4]
cmp byte [edi + eax*4 + 8], 0
lea eax, [edi + eax*4]
je 0x412140
sub dl, 0x10
cmp dl, 2
ja 0x412136
sub ecx, 0x10
je 0x412111
sub ecx, 1
je 0x4120ec
sub ecx, 1
jne 0x412190
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 0x412190
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 0x412190
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 0x412190
lea eax, [ecx + ecx*4]
mov byte [edi + eax*4 + 9], 1
jmp 0x412190
mov byte [eax + 9], 1
test byte [esi + 0x13], 1
je 0x412190
movzx eax, byte [esi + 0x11]
lea eax, [eax + eax*4]
or byte [edi + eax*4 + 0xc], 1
jmp 0x412190
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 0x412190
test byte [esi + 0x13], 1
je 0x41217d
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 0x411d92
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 0x4121fb
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 0x4121e6
cmp word [eax + 0xa], 0
movzx edx, cx
je 0x4121f7
lea esi, [eax + 0xc]
movzx eax, word [esi]
mov ecx, eax
mov edx, eax
cmp ax, word [esp + 0x38]
jne 0x4121d0
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 0x41225b
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 0x412265
xor cl, cl
jmp 0x4122b1
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 0x412514
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.0x412446.19
mov al, byte [edi + 4]
test al, al
je 0x412332
movzx ecx, al
mov eax, ecx
and eax, ebx
cmp ecx, eax
jne case.0x412446.19
mov al, byte [edi + 6]
test al, al
jne 0x4123c5
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 0x41236b
mov ax, word [edi + 0xa]
mov word [esi], ax
jmp case.0x412446.19
shr ax, 0xf
cmp byte [esp + 0x12], 0
je 0x41238a
test al, al
jne 0x4123a6
mov ax, word [edi + 0xa]
and edx, ecx
mov word [ebp + edx*2], ax
jmp case.0x412446.19
test al, al
je 0x4123a6
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.0x412446.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.0x412446.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 0x412426
shr ax, 0xf
cmp byte [esp + 0x12], 0
je 0x412401
test al, al
jne 0x412413
mov ax, word [edi + 0xa]
and edx, ecx
mov word [ebp + edx*2], ax
jmp case.0x412446.19
test al, al
je 0x412413
mov eax, dword [esp + 0x28]
movzx eax, ax
mov word [ebp + eax*2], dx
jmp 0x412426
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.0x412446.19
movzx eax, byte [eax + 0x4125e8]
jmp dword [eax*4 + 0x4125cc]
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 0x412508
jmp 0x412478
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.0x412446.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 0x412508
jmp 0x4124b3
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.0x412446.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 0x412508
jmp 0x4124f0
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 0x4122d4
mov ecx, dword [esp + 0x50]
add edi, 0xc
sub dword [esp + 0x24], 1
mov esi, 0x7ff9
mov edx, dword [esp + 0x54]
jne 0x411e30
push dword [esp + 0x34]
call fcn.004b6d3f
mov esi, dword [0x4e88a0]
add esp, 4
cmp byte [esi + 0x14a], 0
je 0x412585
push 0xa1
mov dl, 0xa0
mov cl, 0x10
call fcn.00412680
add esp, 4
cmp byte [esi + 0x15e], 0
je 0x41259f
push 0xa3
mov dl, 0xa2
mov cl, 0x11
call fcn.00412680
add esp, 4
cmp byte [esi + 0x172], 0
je 0x4125b9
push 0xa5
mov dl, 0xa4
mov cl, 0x12
call fcn.00412680
add esp, 4
mov cl, byte [esp + 0x11]
xor dl, dl
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x48
jmp fcn.00412720