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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x581ae534]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [eax + 0x2750]
push edi
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.58149103
mov ecx, dword [0x581ae534]
mov ebx, eax
mov esi, dword [ecx + 0x2750]
lea eax, [ecx + 0x2750]
mov dword [ebp - 0x18], esi
lea edx, [esi + 0x800]
mov dword [eax], edx
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x581509ba
push 2
pop edi
sub eax, edi
je 0x5815061e
sub eax, 4
je 0x58150614
sub eax, 9
jne 0x5815101e
push 1
call fcn.58155dbb
pop ecx
mov dword [ebp - 0xc], eax
mov ecx, dword [0x581b41d0]
test byte [ecx + 9], 0x20
je 0x581505d8
cmp eax, dword [ebp - 8]
jae 0x581505d8
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x581505d0
mov edi, dword [ebp - 0x18]
lea eax, [esi + edi]
push eax
push edi
call fcn.58146a86
add esi, eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call fcn.581568dd
add ebx, eax
cmp esi, dword [ebp - 8]
pop ecx
jb 0x581505b1
cmp ebx, dword [ebp - 0xc]
jbe 0x581505d8
mov dword [ebp - 0xc], ebx
mov eax, dword [0x581b3d88]
test eax, eax
je 0x5815101e
mov eax, dword [eax + 0x40]
test eax, eax
je 0x5815101e
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call eax
test eax, eax
jne 0x58150d7e
jmp 0x5815101e
cmp word [ebp + 0xc], 8
jmp 0x58150c17
cmp word [ecx + 0x2be4], 0
je 0x5815069b
mov eax, dword [0x581b41d0]
test byte [eax + 8], 0x40
jne 0x5815069b
call fcn.58157dcd
cmp ax, di
jne 0x5815069b
mov eax, dword [0x581b41d0]
cmp byte [eax + 0x137], 0
je 0x5815069b
movzx eax, word [ebp + 0xc]
push 0x28
pop ecx
sub eax, ecx
je 0x58150694
dec eax
je 0x5815068f
sub eax, 0x32
je 0x58150686
sub eax, edi
je 0x5815067d
sub eax, 0x1e
je 0x58150674
sub eax, edi
jne 0x5815069b
mov dword [ebp - 0x10], 0x7b
jmp 0x5815069b
mov dword [ebp - 0x10], 0x7d
jmp 0x5815069b
mov dword [ebp - 0x10], 0x5b
jmp 0x5815069b
mov dword [ebp - 0x10], 0x5d
jmp 0x5815069b
mov dword [ebp - 0x10], ecx
jmp 0x5815069b
mov dword [ebp - 0x10], 0x29
movzx ebx, word [ebp - 0x10]
mov eax, ebx
sub eax, 8
je 0x581507bc
sub eax, edi
je 0x58150794
sub eax, 3
je 0x58150794
sub eax, 0x72
je 0x581507bc
cmp word [ebp - 0x10], 0x20
jb 0x5815101e
push 1
call fcn.58153a4f
test eax, eax
pop ecx
je 0x5815101e
mov eax, dword [0x581b41d0]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [eax + 0x54], 1
call esi
sub eax, 0xc8
cmp eax, dword [0x581af33c]
jb 0x58150709
xor eax, eax
mov dword [0x581af344], eax
jmp 0x5815070e
mov eax, dword [0x581af344]
test eax, eax
je 0x58150729
mov ecx, dword [ebp - 0x18]
and dword [0x581af344], 0
mov dword [ebp - 8], edi
mov byte [ecx], al
mov al, byte [ebp - 0x10]
mov byte [ecx + 1], al
jmp 0x58150780
test ebx, 0xffffff00
jne 0x5815074f
push dword [ebp - 0x10]
call fcn.581469e9
test eax, eax
je 0x5815074f
mov dword [0x581af344], ebx
call esi
mov dword [0x581af33c], eax
jmp 0x58150f27
mov bx, word [ebp - 0x10]
shr bx, 8
push ebx
call fcn.581469e9
test eax, eax
je 0x58150771
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x10]
mov byte [eax], bl
mov byte [eax + 1], cl
mov dword [ebp - 8], edi
jmp 0x58150780
mov ecx, dword [ebp - 0x18]
mov al, byte [ebp - 0x10]
mov byte [ecx], al
mov dword [ebp - 8], 1
mov eax, dword [0x581b41d0]
movzx eax, byte [eax + 0x114]
mov dword [ebp - 0x1c], eax
jmp 0x58150abe
push 1
call fcn.58153a4f
test eax, eax
pop ecx
je 0x5815101e
mov eax, dword [0x581b41d0]
mov dword [ebp - 8], edi
mov byte [esi], 0xd
mov byte [esi + 1], 0xa
and dword [eax + 0x54], 0
jmp 0x58150abe
mov eax, dword [0x581b41cc]
push dword [eax]
push dword [0x581af340]
call fcn.58142c9d
pop ecx
dec eax
pop ecx
mov dword [ebp + 0xc], eax
je 0x58150f27
mov eax, dword [0x581b41d0]
push 1
pop esi
push esi
mov dword [eax + 0x54], esi
call fcn.58153a4f
test eax, eax
pop ecx
je 0x5815101e
mov eax, dword [0x581ae534]
xor ebx, ebx
cmp word [eax + 0x2be4], bx
je 0x581508d7
mov eax, dword [0x581b41d0]
test byte [eax + 8], 0x40
jne 0x581508d7
push esi
call fcn.58155dbb
test eax, eax
pop ecx
mov edi, 0x2000
jbe 0x58150875
mov eax, dword [0x581b41d0]
test dword [eax + 8], edi
jne 0x5815083f
mov ecx, dword [0x581ae534]
cmp byte [ecx + 0x2ac], bl
je 0x5815085c
push dword [eax + 0x58]
call fcn.581568dd
pop ecx
mov ebx, eax
push esi
call fcn.58155dbb
cmp eax, ebx
pop ecx
je 0x58150873
mov eax, dword [0x581b41d0]
xor ebx, ebx
mov ecx, dword [0x581ae534]
cmp word [ecx + 0x2be4], bx
je 0x581508c2
test byte [eax + 8], 0x40
jne 0x581508c2
jmp 0x58150875
xor ebx, ebx
push esi
call fcn.58155dbb
test eax, eax
mov eax, dword [0x581b41d0]
pop ecx
ja 0x581508a4
cmp dword [eax + 0x138], 0xffffffff
je 0x58150945
mov ecx, dword [eax + 0x13c]
cmp ecx, dword [eax + 0x140]
je 0x58150945
test dword [eax + 8], edi
jne 0x581508b7
mov eax, dword [0x581ae534]
cmp byte [eax + 0x2ac], 0
je 0x581508c2
push esi
call fcn.58155dbb
cmp eax, esi
pop ecx
je 0x58150940
push esi
call fcn.58155dbb
test eax, eax
pop ecx
jbe 0x58150940
mov eax, dword [0x581b41d0]
test dword [eax + 8], edi
jmp 0x581508eb
push esi
call fcn.58155dbb
test eax, eax
pop ecx
jbe 0x58150940
mov eax, dword [0x581b41d0]
test byte [eax + 9], 0x20
jne 0x581508fc
mov ecx, dword [0x581ae534]
cmp byte [ecx + 0x2ac], 0
je 0x58150920
test byte [eax + 0x118], 0x10
jne 0x58150920
push dword [eax + 0x58]
call fcn.581568dd
pop ecx
mov edi, eax
push esi
call fcn.58155dbb
cmp eax, edi
pop ecx
je 0x58150940
mov eax, dword [0x581b41d0]
push ebx
push ebx
push 0x303
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x581b41d0]
mov dword [ebp - 0x14], esi
and dword [eax + 8], 0xffffffef
jmp 0x5815101e
mov eax, dword [0x581b41d0]
cmp dword [eax + 0x50], ebx
je 0x5815094f
mov esi, dword [eax + 0x5c]
jmp 0x58150952
mov esi, dword [eax + 0x58]
cmp word [ebp - 0x10], 8
push esi
je 0x58150964
mov eax, dword [0x581b3d88]
call dword [eax + 0x48]
jmp 0x5815096a
call fcn.58155cdc
pop ecx
cmp word [ebp - 0x10], 8
mov dword [ebp - 4], eax
jne 0x58150993
mov eax, dword [0x581b41d0]
mov ecx, dword [eax + 0x110]
test ecx, ecx
je 0x58150993
push 0
push dword [ebp - 4]
push esi
push dword [eax]
call ecx
add esp, 0x10
mov dword [ebp - 4], eax
xor edi, edi
push edi
push dword [ebp - 4]
push edi
call fcn.58152692
add esp, 0xc
cmp dword [ebp - 4], eax
je 0x581509af
mov eax, dword [0x581b41d0]
mov dword [eax + 0x54], edi
sub esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
jmp 0x58150d7e
test bl, 0x20
jne 0x5815101e
movzx esi, word [ebp + 0xc]
mov eax, esi
sub eax, 0x2d
je 0x58150f33
dec eax
je 0x58150c43
sub eax, 0x15
je 0x58151051
sub eax, 0x13
je 0x58151035
push 2
pop edi
sub eax, edi
je 0x58150c2b
sub eax, edi
je 0x58150c0b
sub eax, 0x1d
je 0x58150bb5
test bl, 8
jne 0x58150a1d
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
test eax, eax
jne 0x5815101e
mov eax, dword [0x581ae534]
cmp esi, dword [eax + 0x270]
jne 0x58150a3b
mov ecx, dword [eax + 0x274]
or ecx, 8
cmp ebx, ecx
jne 0x58150a3b
xor esi, esi
jmp 0x58150a5b
cmp esi, dword [eax + 0x278]
jne 0x58150b29
mov ecx, dword [eax + 0x27c]
or ecx, 8
cmp ebx, ecx
jne 0x58150b29
push 1
pop esi
push 1
call fcn.58153a4f
test eax, eax
pop ecx
je 0x5815101e
test esi, esi
mov eax, 0x581a1b68
jne 0x58150a79
mov eax, str.cstr_time___
mov esi, 0x800
push esi
push dword [ebp - 0x18]
push eax
call fcn.5818427c
add esp, 0xc
lea eax, [ebp - 0x30]
push dword [0x581b2680]
push eax
push dword [ebp - 0x18]
call dword [0x581b4490]
add esp, 0xc
test eax, eax
je 0x58150aba
push esi
lea eax, [ebp - 0x30]
push dword [ebp - 0x18]
push eax
call fcn.58189884
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x58150abe
and dword [ebp - 8], 0
mov eax, dword [0x581b41d0]
push 1
mov eax, dword [eax + 0x58]
mov dword [ebp - 4], eax
call fcn.58155dbb
pop ecx
mov dword [ebp - 0xc], eax
mov ecx, dword [0x581b41d0]
test byte [ecx + 9], 0x20
je 0x58150d7e
cmp eax, dword [ebp - 8]
jae 0x58150d7e
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x58150b18
mov eax, dword [ebp - 0x18]
lea ecx, [esi + eax]
push ecx
push eax
call fcn.58146a86
add esi, eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call fcn.581568dd
add ebx, eax
cmp esi, dword [ebp - 8]
pop ecx
jb 0x58150af6
cmp ebx, dword [ebp - 0xc]
jbe 0x58150d7e
mov dword [ebp - 0xc], ebx
jmp 0x58150d7e
xor edi, edi
cmp word [eax + 0x2be4], di
je 0x58150ba4
cmp word [ebp + 0xc], 0x10
jne 0x58150ba4
cmp ebx, 0xc
jne 0x58150ba4
mov ecx, dword [0x581b41d0]
cmp byte [ecx + 0x137], 0
jne 0x58150ba4
test byte [ecx + 8], 0x40
jne 0x58150ba4
xor eax, eax
mov al, byte [ebp + 0x12]
sub ax, 0x36
neg ax
sbb eax, eax
inc eax
mov byte [ecx + 0x131], al
test al, al
mov eax, dword [str.00000409]
je 0x58150b78
mov eax, str.0000
push 1
push eax
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutA]
mov eax, dword [0x581b41d0]
push 1
push edi
push dword [eax]
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.581529cd
mov eax, dword [0x581b41d0]
or byte [eax + 9], 1
jmp 0x5815101b
push ebx
push esi
call fcn.58151087
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
jmp 0x5815101e
push 0x807
call fcn.58150419
mov eax, dword [0x581ae534]
pop ecx
test byte [eax + 0x285], 0x80
je 0x58150bdb
mov eax, dword [0x581b41d0]
mov ecx, dword [eax + 0x58]
mov dword [eax + 0x64], ecx
jmp 0x58150bfb
test bl, 4
je 0x58150be7
call fcn.58151a35
jmp 0x58150bfb
call fcn.58151918
test eax, eax
je 0x58150bfb
push 0x804
call fcn.58150419
pop ecx
push 0x805
call fcn.58150419
pop ecx
jmp 0x58150f27
test bl, 8
je 0x5815101e
test bl, 4
jne 0x5815101e
push 0
push 0
push 0x304
jmp 0x58151048
test bl, 8
je 0x5815101e
test bl, 4
jne 0x5815101e
and ebx, 0xfffffff7
or ebx, 4
mov eax, dword [0x581b41cc]
push dword [eax]
push dword [0x581af340]
call fcn.58142c9d
pop ecx
dec eax
pop ecx
mov dword [ebp + 0xc], eax
je 0x58150f27
push 1
call fcn.58153a4f
test eax, eax
pop ecx
je 0x5815101e
xor esi, esi
push esi
call fcn.58155dbb
test eax, eax
pop ecx
je 0x58150ce0
mov eax, dword [0x581b41d0]
test byte [eax + 9], 0x20
jne 0x58150c98
mov ecx, dword [0x581ae534]
cmp byte [ecx + 0x2ac], 0
je 0x58150cbc
test byte [eax + 0x118], 0x10
jne 0x58150cbc
push dword [eax + 0x58]
call fcn.581568dd
pop ecx
mov edi, eax
push esi
call fcn.58155dbb
cmp eax, edi
pop ecx
je 0x58150ce0
mov eax, dword [0x581b41d0]
and dword [eax + 8], 0xffffffef
and bl, 4
neg bl
sbb ebx, ebx
push esi
and ebx, 0xfffffffd
push esi
add ebx, 0x303
push ebx
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x58150f27
mov eax, dword [0x581b41d0]
cmp dword [eax + 0x50], esi
je 0x58150cef
mov eax, dword [eax + 0x5c]
jmp 0x58150cf2
mov eax, dword [eax + 0x58]
push eax
call fcn.58155cad
test bl, 8
pop ecx
mov dword [ebp - 4], eax
je 0x58150d4f
mov ecx, dword [0x581b41d0]
xor esi, esi
push esi
push dword [ecx + 0x54]
push eax
call fcn.58151c88
add esp, 0xc
mov edi, eax
push esi
push esi
push esi
push 1
push edi
call fcn.58154a09
mov esi, eax
add esp, 0x14
cmp edi, esi
jne 0x58150d34
mov eax, dword [0x581b41d0]
mov esi, dword [eax + 0x28]
push 0
push esi
push 0
call fcn.58152692
add esp, 0xc
cmp eax, dword [ebp - 4]
jb 0x58150d48
mov esi, eax
sub esi, dword [ebp - 4]
mov eax, esi
jmp 0x58150d59
push eax
call fcn.58155d26
sub eax, dword [ebp - 4]
pop ecx
test bl, 4
mov dword [ebp - 0xc], eax
je 0x58150d69
call fcn.5817e9df
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [0x581b41d0]
sub ecx, dword [eax + 0x28]
neg ecx
sbb ecx, ecx
inc ecx
mov dword [eax + 0x54], ecx
push 1
pop edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.581539ba
add esp, 0x10
test eax, eax
je 0x58150dfb
push 0
lea eax, [ebp - 0xc]
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.581536a5
add esp, 0x14
test eax, eax
je 0x5815101e
cmp word [ebp - 0x10], 8
jne 0x58150dc5
xor ecx, ecx
cmp dword [ebp - 4], ecx
je 0x58150dc8
push 1
pop ecx
mov eax, dword [0x581b41d0]
push 1
pop edi
mov edx, dword [eax + 8]
and ecx, edi
and edx, 0xffffffef
shl ecx, 4
or edx, ecx
mov dword [eax + 8], edx
mov dword [eax + 0x94], 0x33d0
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.58153611
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x1c], ebx
je 0x58150f19
mov eax, dword [0x581b41cc]
push dword [eax]
push dword [0x581af340]
call fcn.58142eca
pop ecx
mov esi, eax
pop ecx
mov dword [ebp + 0xc], 0x100
call fcn.5815690b
cmp dword [ebp - 4], ebx
jbe 0x58150f19
mov eax, dword [0x581aa154]
shr eax, 0x10
cmp ax, 0xffff
jne 0x58150e49
push 0x26
call fcn.5814e9fc
pop ecx
jmp 0x58150e4b
mov eax, edi
cmp eax, ebx
je 0x58150e7d
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
push esi
call fcn.58146b41
sub eax, esi
push eax
push esi
call dword [0x581aa154]
jmp 0x58150e82
mov eax, dword [0x581aa158]
cmp eax, ebx
je 0x58150f19
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, edi
push edi
mov dword [ebp - 0xc], eax
sub edx, eax
add dword [ebp - 4], edx
push eax
lea eax, [ebp - 0x130]
push ecx
push eax
mov dword [ebp - 8], ecx
call fcn.581539ba
add esp, 0x10
test eax, eax
je 0x58150f19
mov ecx, dword [0x581b41d0]
push ebx
mov eax, dword [ecx + 8]
mov esi, eax
and al, 0xef
mov dword [ecx + 8], eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
shr esi, 4
and esi, edi
call fcn.581536a5
add esp, 0x14
test eax, eax
mov eax, dword [0x581b41d0]
je 0x58150f09
mov dword [eax + 0x94], 0x33de
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.58153611
add esp, 0xc
jmp 0x58150f19
mov ecx, dword [eax + 8]
and esi, edi
shl esi, 4
and ecx, 0xffffffef
or esi, ecx
mov dword [eax + 8], esi
mov eax, dword [0x581b41d0]
or dword [eax + 0x48], 0xffffffff
call fcn.5815285b
mov dword [ebp - 0x14], 1
jmp 0x5815101e
push 1
test bl, 4
pop edi
je 0x58150f4d
mov eax, dword [0x581b41d0]
push 0
push 0
push 0x302
push dword [eax]
jmp 0x58150f6a
test bl, 8
je 0x58150f7e
mov eax, dword [0x581b41d0]
mov ecx, dword [eax + 0x58]
cmp ecx, dword [eax + 0x5c]
je 0x58150f75
push 0
push 0
push 0x301
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x581b41d0]
and dword [eax + 8], 0xffffffef
jmp 0x5815101b
lea eax, [ecx + 0x2ac]
xor ecx, ecx
push edi
push 7
cmp byte [eax], cl
sete cl
mov byte [eax], cl
call fcn.5814913b
mov eax, dword [0x581b41d0]
pop ecx
pop ecx
test byte [eax + 9], 0x20
jne 0x5815101b
test byte [eax + 0x118], 0x10
jne 0x5815101b
mov ecx, dword [0x581ae534]
cmp byte [ecx + 0x2ac], 0
je 0x58150fc1
call fcn.5815285b
jmp 0x5815101b
push dword [eax + 0x58]
call fcn.581568dd
pop ecx
xor esi, esi
push esi
mov ebx, eax
call fcn.58155dbb
cmp eax, ebx
pop ecx
jne 0x5815101b
mov eax, dword [0x581b41d0]
push esi
push esi
mov eax, dword [eax + 0x58]
push eax
push eax
call fcn.581527f7
mov eax, dword [0x581b41d0]
add esp, 0x10
and dword [eax + 8], 0xffffffef
call fcn.581529cd
mov eax, dword [0x581b41d0]
cmp dword [eax + 0x50], esi
je 0x5815100a
mov ecx, dword [eax + 0x5c]
jmp 0x5815100d
mov ecx, dword [eax + 0x58]
push esi
push esi
push dword [eax + 0x54]
push ecx
call fcn.58152db4
add esp, 0x10
mov dword [ebp - 0x14], edi
mov ecx, dword [0x581ae534]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword [ecx + 0x2750], eax
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret
test bl, 8
je 0x5815101e
test bl, 4
jne 0x5815101e
push 0
push 0
push 0x302
mov eax, dword [0x581b41d0]
push dword [eax]
jmp 0x58151073
test bl, 8
je 0x5815101e
test bl, 4
jne 0x5815101e
mov eax, dword [0x581b41d0]
mov ecx, dword [eax + 0x58]
cmp ecx, dword [eax + 0x5c]
je 0x5815107e
push 0
push 0
push 0x301
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x581b41d0]
and dword [eax + 8], 0xffffffef
jmp 0x58150f27