Function at 0x4d7e5b
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 0x4d7e83
mov eax, dword [0x4e8024]
xor eax, dword [0x4e8036]
xor eax, dword [0x4e82ca]
mov dword [ebp - 0x10], eax
jmp 0x4d7e90
mov eax, dword [0x4e82ca]
xor eax, 0xed8375b6
mov dword [ebp - 0x10], eax
call fcn.004ddbea
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4d7ebb
cmp dword [0x4e8f30], 0
jne 0x4d7eb1
mov dword [0x4e8f30], 1
mov eax, 0xeac2
jmp 0x4d8581
cmp dword [0x4e8a26], 0
je 0x4d80ad
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [ebp - 0x30]
and eax, 0xffff
mov dword [ebp - 0x14], eax
xor eax, eax
mov ax, word [ebp - 0x2e]
mov dword [ebp - 0x20], eax
xor eax, eax
mov ax, word [ebp - 0x2a]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x14]
shl eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
shl eax, 8
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
not eax
mov dword [section..gdata], eax
movsx eax, word [0x4e8a24]
mov dword [0x4e9558], eax
mov dword [0x4e9554], 0xa
lea eax, [ebp - 0x40]
mov dword [0x4e9550], eax
call fcn.004ddc03
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4d7f61
cmp dword [0x4e8f30], 0
jne 0x4d7f57
mov dword [0x4e8f30], 6
mov eax, 0xeac2
jmp 0x4d8581
mov al, byte [ebp - 0x38]
mov byte [ebp - 0x5c], al
mov dword [ebp - 0x48], 0
jmp 0x4d7f73
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d7f8d
mov eax, dword [ebp - 0x48]
movsx eax, byte [eax + ebp - 0x40]
xor al, byte [ebp - 0x5c]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x40], al
jmp 0x4d7f70
mov al, byte [ebp - 0x37]
mov byte [ebp - 0x34], al
mov dword [ebp - 0x48], 4
jmp 0x4d7f9f
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 8
jae 0x4d7fb9
mov eax, dword [ebp - 0x48]
movsx eax, byte [eax + ebp - 0x40]
xor al, byte [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x40], al
jmp 0x4d7f9c
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x3b]
mov byte [ebp - 0x40], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x3b], al
mov al, byte [ebp - 0x3a]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x3e]
mov byte [ebp - 0x3a], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x3e], al
mov al, byte [ebp - 0x3f]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x3c]
mov byte [ebp - 0x3f], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x3c], al
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov al, byte [ebp - 0x1c]
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebp - 0x5c], dl
mov al, byte [ebp - 0x5c]
mov byte [ebp - 0x38], al
lea eax, [ebp - 8]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d8020
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d8038
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 0x4d801d
call dword [sym.imp.kernel32.dll_GetTickCount]
add eax, 0x3c
mov dword [ebp - 0x1c], eax
xor eax, eax
mov al, byte [ebp - 0x1c]
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebp - 0x34], dl
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x37], al
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], eax
jbe 0x4d8081
cmp dword [0x4e8f30], 0
jne 0x4d8075
mov dword [0x4e8f30], 2
mov eax, 0xeac1
jmp 0x4d8581
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x48], 0
jmp 0x4d8093
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d80ab
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 0x4d8090
jmp 0x4d8119
cmp dword [0x4e82ae], 0
je 0x4d8112
mov eax, dword [ebp - 0x10]
not eax
mov dword [section..gdata], eax
mov dword [0x4e9558], 0
mov dword [0x4e9554], 4
lea eax, [ebp - 0x40]
mov dword [0x4e9550], eax
call fcn.004ddc03
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4d8109
cmp dword [0x4e8f30], 0
jne 0x4d80fd
mov dword [0x4e8f30], 6
mov eax, 0xeac2
jmp 0x4d8581
xor eax, eax
jmp 0x4d8581
xor eax, eax
jmp 0x4d8581
mov eax, dword [0x4e8a26]
mov dword [ebp - 0x64], eax
jmp 0x4d84a5
lea eax, [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d8138
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 2
jae 0x4d8150
mov eax, dword [ebp - 0x48]
mov al, byte [eax + ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov byte [edx + ecx], al
jmp 0x4d8135
movsx eax, word [ebp - 0x18]
cmp eax, 0x1234
jne 0x4d826d
lea eax, [ebp - 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d8171
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 2
jae 0x4d8189
mov eax, dword [ebp - 0x48]
mov al, byte [eax + ebp - 0x3e]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov byte [edx + ecx], al
jmp 0x4d816e
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [ebp - 0x30]
and eax, 0xffff
mov dword [ebp - 0x14], eax
xor eax, eax
mov ax, word [ebp - 0x2e]
mov dword [ebp - 0x20], eax
xor eax, eax
mov ax, word [ebp - 0x2a]
mov dword [ebp - 0x60], eax
movsx eax, word [ebp - 4]
add dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x1e
jbe 0x4d81f2
mov ecx, dword [ebp - 0x60]
mov ebx, 0x1e
mov eax, dword [ebp - 0x60]
sub edx, edx
div ebx
sub ecx, edx
mov ebx, 0x1e
mov eax, ecx
sub edx, edx
div ebx
add dword [ebp - 0x20], eax
mov ecx, 0x1e
mov eax, dword [ebp - 0x60]
sub edx, edx
div ecx
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x20], 0xc
jbe 0x4d8226
mov ecx, dword [ebp - 0x20]
mov ebx, 0xc
mov eax, dword [ebp - 0x20]
sub edx, edx
div ebx
sub ecx, edx
mov ebx, 0xc
mov eax, ecx
sub edx, edx
div ebx
add dword [ebp - 0x14], eax
mov ecx, 0xc
mov eax, dword [ebp - 0x20]
sub edx, edx
div ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
shl eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
shl eax, 8
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
or dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d8250
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d8268
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov al, byte [ecx + eax]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x40], al
jmp 0x4d824d
jmp 0x4d82f8
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d827f
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d8297
mov eax, dword [ebp - 0x48]
mov al, byte [eax + ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov byte [edx + ecx], al
jmp 0x4d827c
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [ebp - 0x30]
and eax, 0xffff
mov dword [ebp - 0x14], eax
xor eax, eax
mov ax, word [ebp - 0x2e]
mov dword [ebp - 0x20], eax
xor eax, eax
mov ax, word [ebp - 0x2a]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x14]
shl eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
shl eax, 8
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x50], eax
ja 0x4d82f8
cmp dword [0x4e8f30], 0
jne 0x4d82f8
mov dword [0x4e8f30], 3
jmp case.default.0x4d84b1
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d830f
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d8327
mov eax, dword [ebp - 0x48]
mov al, byte [eax + ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov byte [edx + ecx], al
jmp 0x4d830c
sub dword [ebp - 0x4c], 0xa
cmp dword [ebp - 0x4c], 0
jg 0x4d8346
cmp dword [0x4e8f30], 0
jne 0x4d8344
mov dword [0x4e8f30], 5
jmp 0x4d836a
mov dword [ebp - 0x48], 0
jmp 0x4d8352
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d836a
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov al, byte [ecx + eax]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x40], al
jmp 0x4d834f
jmp case.default.0x4d84b1
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d8381
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d8399
mov eax, dword [ebp - 0x48]
mov al, byte [eax + ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov byte [edx + ecx], al
jmp 0x4d837e
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [ebp - 0x30]
and eax, 0xffff
mov dword [ebp - 0x14], eax
xor eax, eax
mov ax, word [ebp - 0x2e]
mov dword [ebp - 0x20], eax
xor eax, eax
mov ax, word [ebp - 0x2a]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x14]
shl eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
shl eax, 8
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x50], eax
ja 0x4d83fa
cmp dword [0x4e8f30], 0
jne 0x4d83fa
mov dword [0x4e8f30], 3
jmp case.default.0x4d84b1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d8411
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 2
jae 0x4d8429
mov eax, dword [ebp - 0x48]
mov al, byte [eax + ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov byte [edx + ecx], al
jmp 0x4d840e
lea eax, [ebp - 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x4d843b
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 2
jae 0x4d8453
mov eax, dword [ebp - 0x48]
mov al, byte [eax + ebp - 0x3e]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov byte [edx + ecx], al
jmp 0x4d8438
movsx eax, word [ebp - 4]
inc eax
mov word [ebp - 4], ax
movsx eax, word [ebp - 0x18]
movsx ecx, word [ebp - 4]
cmp eax, ecx
jge 0x4d847b
cmp dword [0x4e8f30], 0
jne 0x4d847b
mov dword [0x4e8f30], 4
mov dword [ebp - 0x48], 0
jmp 0x4d8487
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 2
jae 0x4d849f
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov al, byte [ecx + eax]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x3e], al
jmp 0x4d8484
jmp case.default.0x4d84b1
dec dword [ebp - 0x64]
cmp dword [ebp - 0x64], 3
ja case.default.0x4d84b1
mov eax, dword [ebp - 0x64]
jmp dword [eax*4 + 0x4d84b8]
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x3b]
mov byte [ebp - 0x40], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x3b], al
mov al, byte [ebp - 0x3a]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x3e]
mov byte [ebp - 0x3a], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x3e], al
mov al, byte [ebp - 0x3f]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x3c]
mov byte [ebp - 0x3f], al
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x3c], al
mov dword [ebp - 0x48], 0
jmp 0x4d850a
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 4
jae 0x4d8524
mov eax, dword [ebp - 0x48]
movsx eax, byte [eax + ebp - 0x40]
xor al, byte [ebp - 0x5c]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x40], al
jmp 0x4d8507
mov dword [ebp - 0x48], 4
jmp 0x4d8530
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 8
jae 0x4d854a
mov eax, dword [ebp - 0x48]
movsx eax, byte [eax + ebp - 0x40]
xor al, byte [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + ebp - 0x40], al
jmp 0x4d852d
call fcn.004d9f48
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4d856b
cmp dword [0x4e8f30], 0
jne 0x4d856b
mov dword [0x4e8f30], 7
cmp dword [0x4e8f30], 0
jne 0x4d857a
xor eax, eax
jmp 0x4d8581
mov eax, 0xb
jmp 0x4d8581
pop edi
pop esi
pop ebx
leave
ret