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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
cmp dword [0x4e8084], 0
je 0x4d85ae
mov eax, dword [0x4e8024]
xor eax, dword [0x4e8036]
xor eax, dword [0x4e82ca]
mov dword [ebp - 0xc], eax
jmp 0x4d85bb
mov eax, dword [0x4e82ca]
xor eax, 0xed8375b6
mov dword [ebp - 0xc], eax
call fcn.004ddbea
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4d85e6
cmp dword [0x4e8f30], 0
jne 0x4d85dc
mov dword [0x4e8f30], 1
mov eax, 0xeac2
jmp 0x4d8a2f
cmp dword [0x4e8a26], 4
je 0x4d85f8
cmp dword [0x4e8a26], 0
jne 0x4d8604
xor eax, eax
jmp 0x4d8a2f
mov dword [ebp - 8], 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
mov dword [ebp - 0x10], eax
xor eax, eax
mov ax, word [ebp - 0x2a]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ax, word [ebp - 0x26]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x10]
shl eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
shl eax, 8
or dword [ebp - 8], eax
mov eax, dword [ebp - 0x60]
or dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
not eax
mov dword [section..gdata], eax
movsx eax, word [0x4e8a24]
mov dword [0x4e9558], eax
mov dword [0x4e9554], 0xa
lea eax, [ebp - 0x3c]
mov dword [0x4e9550], eax
call fcn.004ddc03
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4d869d
cmp dword [0x4e8f30], 0
jne 0x4d8693
mov dword [0x4e8f30], 6
mov eax, 0xeac2
jmp 0x4d8a2f
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x5c], al
mov dword [ebp - 0x48], 0
jmp 0x4d86af
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d86c9
mov eax, dword [ebp - 0x48]
movsx eax, byte [eax + ebp - 0x3c]
xor al, byte [ebp - 0x5c]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x3c], al
jmp 0x4d86ac
mov al, byte [ebp - 0x33]
mov byte [ebp - 0x30], al
mov dword [ebp - 0x48], 4
jmp 0x4d86db
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 8
jae 0x4d86f5
mov eax, dword [ebp - 0x48]
movsx eax, byte [eax + ebp - 0x3c]
xor al, byte [ebp - 0x30]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x3c], al
jmp 0x4d86d8
mov al, byte [ebp - 0x3c]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x37]
mov byte [ebp - 0x3c], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x37], al
mov al, byte [ebp - 0x36]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x3a]
mov byte [ebp - 0x36], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x3a], al
mov al, byte [ebp - 0x3b]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x38]
mov byte [ebp - 0x3b], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x38], al
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
xor eax, eax
mov al, byte [ebp - 0x18]
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebp - 0x5c], dl
mov al, byte [ebp - 0x5c]
mov byte [ebp - 0x34], al
lea eax, [ebp - 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d875c
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d8774
mov eax, dword [ebp - 0x48]
mov al, byte [eax + ebp - 0x38]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov byte [edx + ecx], al
jmp 0x4d8759
call dword [sym.imp.kernel32.dll_GetTickCount]
add eax, 0x3c
mov dword [ebp - 0x18], eax
xor eax, eax
mov al, byte [ebp - 0x18]
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebp - 0x30], dl
mov al, byte [ebp - 0x30]
mov byte [ebp - 0x33], al
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jae 0x4d87bd
cmp dword [0x4e8f30], 0
jne 0x4d87b1
mov dword [0x4e8f30], 2
mov eax, 0xeac1
jmp 0x4d8a2f
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 0
jmp 0x4d87cf
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d87e7
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov al, byte [ecx + eax]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x38], al
jmp 0x4d87cc
mov eax, dword [0x4e8a26]
mov dword [ebp - 0x64], eax
jmp 0x4d895a
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d8806
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d881e
mov eax, dword [ebp - 0x48]
mov al, byte [eax + ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov byte [edx + ecx], al
jmp 0x4d8803
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp dword [0x4e94c4], eax
jbe 0x4d883b
mov dword [ebp - 0x14], 0xea60
jmp 0x4d8847
mov eax, dword [ebp - 0x40]
sub eax, dword [0x4e94c4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [0x4e94c4], eax
xor ecx, ecx
mov ebx, 0x3e8
mov eax, dword [ebp - 0x14]
cdq
idiv ebx
sub ecx, eax
neg ecx
sub dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0
jg 0x4d88a0
mov dword [ebp - 0x48], 0
jmp 0x4d8875
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d888d
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov al, byte [ecx + eax]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x3c], al
jmp 0x4d8872
cmp dword [0x4e8f30], 0
jne 0x4d88a0
mov dword [0x4e8f30], 5
mov dword [ebp - 0x48], 0
jmp 0x4d88ac
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d88c4
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov al, byte [ecx + eax]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x3c], al
jmp 0x4d88a9
jmp 0x4d8976
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d88db
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d88f3
mov eax, dword [ebp - 0x48]
mov al, byte [eax + ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov byte [edx + ecx], al
jmp 0x4d88d8
mov dword [ebp - 8], 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
mov dword [ebp - 0x10], eax
xor eax, eax
mov ax, word [ebp - 0x2a]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ax, word [ebp - 0x26]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x10]
shl eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
shl eax, 8
or dword [ebp - 8], eax
mov eax, dword [ebp - 0x60]
or dword [ebp - 8], eax
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 8], eax
jb 0x4d8954
cmp dword [0x4e8f30], 0
jne 0x4d8954
mov dword [0x4e8f30], 3
jmp 0x4d8976
cmp dword [ebp - 0x64], 1
jb 0x4d8976
cmp dword [ebp - 0x64], 2
jbe 0x4d88c9
cmp dword [ebp - 0x64], 3
je 0x4d87f4
jmp 0x4d8976
mov al, byte [ebp - 0x3c]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x37]
mov byte [ebp - 0x3c], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x37], al
mov al, byte [ebp - 0x36]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x3a]
mov byte [ebp - 0x36], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x3a], al
mov al, byte [ebp - 0x3b]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x38]
mov byte [ebp - 0x3b], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x38], al
mov dword [ebp - 0x48], 0
jmp 0x4d89b8
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d89d2
mov eax, dword [ebp - 0x48]
movsx eax, byte [eax + ebp - 0x3c]
xor al, byte [ebp - 0x5c]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x3c], al
jmp 0x4d89b5
mov dword [ebp - 0x48], 4
jmp 0x4d89de
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 8
jae 0x4d89f8
mov eax, dword [ebp - 0x48]
movsx eax, byte [eax + ebp - 0x3c]
xor al, byte [ebp - 0x30]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x3c], al
jmp 0x4d89db
call fcn.004d9f48
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4d8a19
cmp dword [0x4e8f30], 0
jne 0x4d8a19
mov dword [0x4e8f30], 7
cmp dword [0x4e8f30], 0
jne 0x4d8a28
xor eax, eax
jmp 0x4d8a2f
mov eax, 0xb
jmp 0x4d8a2f
pop edi
pop esi
pop ebx
leave
ret