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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x538da1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
sub eax, 0x34
jae 0x538727
mov eax, dword [0x573edc]
cmp byte [eax], 0
je 0x5384a5
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5739a0]
sub eax, dword [edx]
cmp eax, 0x1388
jbe 0x5384a5
mov eax, dword [0x573edc]
mov byte [eax], 0
mov eax, dword [0x573edc]
cmp byte [eax], 0
jne 0x538991
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
cmp byte [edx + eax*4], 0
je 0x538991
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
cmp byte [edx + eax*4 + 0xf], 3
jbe 0x5384ff
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
cmp byte [edx + eax*4 + 0xf], 0x3c
jne 0x538991
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
mov ecx, dword [0x573edc]
lea esi, [edx + eax*4]
mov edi, ecx
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
mov byte [edx + eax*4], 0
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
cmp byte [edx + eax*4 + 0xf], 4
jne 0x5386ac
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
cmp byte [edx + eax*4 + 0x10], 0x64
jae 0x5386ac
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
cmp byte [edx + eax*4 + 0x10], 0x32
jae 0x53861b
mov edx, 0x538db0
lea eax, [ebp - 0x40]
call fcn.0040349c
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
lea edx, [edx + eax*4]
lea eax, [ebp - 0x40]
mov cl, 0xf
call fcn.0040346c
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x64]
call fcn.0040349c
mov edx, 0x538db4
lea eax, [ebp - 0x64]
mov cl, 0x23
call fcn.0040346c
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x30]
call fcn.00404e50
mov edx, dword [ebp - 0x30]
mov eax, dword [0x5743f8]
mov eax, dword [eax]
mov cx, word [0x538dcc]
call fcn.004f6038
cmp eax, 6
je 0x5386ac
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
mov ecx, dword [0x573edc]
lea edi, [edx + eax*4]
mov esi, ecx
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
jmp 0x538d7e
mov edx, 0x538db0
lea eax, [ebp - 0x40]
call fcn.0040349c
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
lea edx, [edx + eax*4]
lea eax, [ebp - 0x40]
mov cl, 0xf
call fcn.0040346c
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x64]
call fcn.0040349c
mov edx, 0x538db4
lea eax, [ebp - 0x64]
mov cl, 0x23
call fcn.0040346c
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x68]
call fcn.00404e50
mov edx, dword [ebp - 0x68]
mov eax, dword [0x5743f8]
mov eax, dword [eax]
mov cx, word [0x538dcc]
call fcn.004f6038
cmp eax, 6
je 0x5386ac
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
mov ecx, dword [0x573edc]
lea edi, [edx + eax*4]
mov esi, ecx
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
jmp 0x538d7e
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5739a0]
mov dword [edx], eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 8]
mov ecx, edx
shl edx, 4
add edx, ecx
mov ecx, dword [0x5741ec]
lea edx, [ecx + edx*4]
call fcn.00404e50
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
mov edx, dword [edx + eax*4 + 0x3c]
mov eax, dword [ebp - 4]
call fcn.0053ede4
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
movzx edx, byte [edx + eax*4 + 0x10]
mov eax, dword [ebp - 8]
mov ecx, eax
shl eax, 4
add eax, ecx
mov ecx, dword [0x5741ec]
movzx eax, byte [ecx + eax*4 + 0xf]
call fcn.004e5f8c
jmp 0x538991
cmp dword [ebp - 8], 0xffffffff
jne 0x538991
mov eax, dword [0x574018]
cmp byte [eax], 0
je 0x538991
mov eax, dword [0x5743f8]
mov eax, dword [eax]
mov eax, dword [eax + 0x780]
cmp byte [eax + 0x26c], 0
jne 0x538991
mov eax, dword [0x574018]
mov byte [eax], 0
mov eax, dword [0x573ee0]
mov edx, dword [0x573edc]
lea esi, [eax + 4]
mov edi, edx
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x573ee0]
mov byte [eax + 4], 0
mov eax, dword [0x573edc]
cmp byte [eax + 0xf], 0x30
jne 0x538849
mov eax, dword [0x573754]
xor ecx, ecx
mov edx, 0x264
call fcn.004035b8
mov eax, dword [0x5743f8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7a8]
mov byte [eax + 0x26c], 0
mov eax, dword [0x574294]
mov eax, dword [eax]
mov edx, 0x208
call fcn.0047e974
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x538830
mov eax, dword [0x5743f8]
mov eax, dword [eax]
mov eax, dword [eax + 0x780]
mov edx, 0xd7
call fcn.0043c040
mov eax, dword [ebp - 0x28]
call fcn.00471c38
mov edx, 0x258
sub edx, eax
sar edx, 1
jns 0x5387fc
adc edx, 0
sub edx, 6
mov eax, dword [0x5743f8]
mov eax, dword [eax]
mov eax, dword [eax + 0x780]
call fcn.0043c064
mov edx, dword [0x574294]
mov edx, dword [edx]
mov eax, dword [0x5743f8]
mov eax, dword [eax]
mov eax, dword [eax + 0x780]
mov ecx, 0x208
call fcn.00487fa0
mov eax, dword [0x5743f8]
mov eax, dword [eax]
mov eax, dword [eax + 0x780]
mov dl, 1
call fcn.004887f8
jmp 0x538d7e
mov eax, dword [0x573edc]
cmp byte [eax + 0xf], 4
jne 0x53894a
mov eax, dword [0x573edc]
cmp byte [eax + 0x10], 0x64
jae 0x53894a
mov eax, dword [0x573edc]
cmp byte [eax + 0x10], 0x32
jae 0x5388de
mov edx, 0x538db0
lea eax, [ebp - 0x40]
call fcn.0040349c
mov edx, dword [0x573edc]
lea eax, [ebp - 0x40]
mov cl, 0xf
call fcn.0040346c
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x64]
call fcn.0040349c
mov edx, 0x538db4
lea eax, [ebp - 0x64]
mov cl, 0x23
call fcn.0040346c
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x70]
call fcn.00404e50
mov edx, dword [ebp - 0x70]
mov eax, dword [0x5743f8]
mov eax, dword [eax]
mov cx, word [0x538dcc]
call fcn.004f6038
cmp eax, 6
je 0x53894a
mov eax, dword [0x573edc]
call fcn.004e636c
jmp 0x538d7e
mov edx, 0x538db0
lea eax, [ebp - 0x40]
call fcn.0040349c
mov edx, dword [0x573edc]
lea eax, [ebp - 0x40]
mov cl, 0xf
call fcn.0040346c
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x64]
call fcn.0040349c
mov edx, 0x538db4
lea eax, [ebp - 0x64]
mov cl, 0x23
call fcn.0040346c
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x74]
call fcn.00404e50
mov edx, dword [ebp - 0x74]
mov eax, dword [0x5743f8]
mov eax, dword [eax]
mov cx, word [0x538dcc]
call fcn.004f6038
cmp eax, 6
je 0x53894a
mov eax, dword [0x573edc]
call fcn.004e636c
jmp 0x538d7e
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5739a0]
mov dword [edx], eax
lea eax, [ebp - 0x78]
mov edx, dword [0x573edc]
call fcn.00404e50
mov ecx, dword [ebp - 0x78]
mov edx, dword [0x573edc]
mov edx, dword [edx + 0x3c]
mov eax, dword [ebp - 4]
call fcn.0053ede4
mov edx, dword [0x573edc]
movzx edx, byte [edx + 0x10]
mov eax, dword [0x573edc]
movzx eax, byte [eax + 0xf]
call fcn.004e5f8c
mov eax, dword [0x573edc]
cmp byte [eax], 0
je 0x538a3d
cmp dword [ebp - 8], 0xffffffff
jne 0x538a3d
mov eax, dword [0x573edc]
cmp byte [eax + 0xf], 4
jae 0x538a3d
mov eax, dword [0x573ce0]
cmp byte [eax], 0x32
je 0x538a3d
mov dword [ebp - 0xc], 6
mov eax, dword [0x573edc]
mov edx, dword [ebp - 0xc]
mov ecx, edx
shl edx, 4
add edx, ecx
mov ecx, dword [0x5741ec]
lea edx, [ecx + edx*4]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403548
jne 0x538a34
mov eax, dword [0x573ce0]
mov al, byte [eax]
mov edx, dword [0x5740a4]
mov byte [edx], al
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
mov ecx, dword [0x573df0]
lea esi, [edx + eax*4]
mov edi, ecx
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
mov byte [edx + eax*4], 0
jmp 0x538a3d
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x5389c9
mov eax, dword [0x573edc]
cmp byte [eax], 0
je 0x538ace
cmp dword [ebp - 8], 0xffffffff
jle 0x538ace
cmp dword [ebp - 8], 6
jge 0x538ace
mov dword [ebp - 0xc], 6
mov eax, dword [0x573edc]
mov edx, dword [ebp - 0xc]
mov ecx, edx
shl edx, 4
add edx, ecx
mov ecx, dword [0x5741ec]
lea edx, [ecx + edx*4]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403548
jne 0x538ac5
mov al, byte [ebp - 8]
mov edx, dword [0x5740a4]
mov byte [edx], al
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
mov ecx, dword [0x573df0]
lea esi, [edx + eax*4]
mov edi, ecx
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
mov byte [edx + eax*4], 0
jmp 0x538ace
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x538a5e
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x22], 0
mov eax, dword [0x573edc]
cmp byte [eax + 0xf], 0
je 0x538afc
mov eax, dword [0x573edc]
cmp byte [eax + 0xf], 3
jne 0x538b42
mov eax, dword [0x573edc]
cmp byte [eax + 0x10], 4
je 0x538b42
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
lea eax, [edx + eax*4]
mov edx, dword [0x573edc]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403548
jne 0x538b29
inc dword [ebp - 0x20]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x538b01
cmp dword [ebp - 0x20], 0
jne 0x538b3e
mov byte [ebp - 0x15], 1
jmp 0x538b42
mov byte [ebp - 0x15], 0
mov eax, dword [0x573edc]
cmp byte [eax + 0xf], 0
je 0x538b63
mov eax, dword [0x573edc]
cmp byte [eax + 0xf], 3
jne 0x538bcd
mov eax, dword [0x573edc]
cmp byte [eax + 0x10], 4
je 0x538bcd
cmp byte [ebp - 0x15], 0
je 0x538bcd
mov eax, dword [0x57388c]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x538bcd
mov eax, dword [0x57388c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x538bcd
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x57388c]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00419dc8
mov dword [ebp - 0x1c], eax
mov eax, dword [0x573edc]
mov edx, dword [ebp - 0x1c]
add edx, 4
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403548
jne 0x538bc5
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x22], 1
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x538b90
cmp dword [ebp - 0xc], 0x34
je 0x538bdd
cmp dword [ebp - 0x20], 0
jne 0x538d7e
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
cmp byte [edx + eax*4], 0
jne 0x538c00
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x2f
jne 0x538be7
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
movzx eax, byte [edx + eax*4 + 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x538c48
cmp byte [ebp - 0x15], 0
je 0x538c48
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
cmp byte [edx + eax*4], 0
je 0x538c48
mov byte [ebp - 0x21], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x538c0e
mov eax, dword [0x573edc]
cmp byte [eax + 0xf], 0
jne 0x538c67
mov eax, dword [0x573edc]
cmp byte [eax + 0x10], 3
jne 0x538c76
mov eax, dword [0x573edc]
cmp byte [eax + 0xf], 3
jne 0x538d4d
cmp dword [ebp - 0x10], 5
jle 0x538d4d
cmp dword [ebp - 0x20], 0
jne 0x538d4d
mov eax, dword [0x573d8c]
cmp byte [eax], 0
je 0x538d4d
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
movzx eax, byte [edx + eax*4 + 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x538d40
cmp byte [ebp - 0x15], 0
je 0x538d40
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
cmp byte [edx + eax*4], 0
je 0x538d40
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
cmp byte [edx + eax*4 + 0xf], 0x1f
jne 0x538d40
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0xc]
mov ecx, edx
shl edx, 4
add edx, ecx
mov ecx, dword [0x5741ec]
lea edx, [ecx + edx*4]
call fcn.00404e50
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
mov edx, dword [edx + eax*4 + 0x3c]
mov eax, dword [ebp - 4]
call fcn.0053ede4
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x5741ec]
mov byte [edx + eax*4], 0
mov byte [ebp - 0x15], 0
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x538c9d
cmp dword [ebp - 0x10], 5
jg 0x538d7e
cmp byte [ebp - 0x21], 0
je 0x538d7e
cmp byte [ebp - 0x22], 0
je 0x538d7e
cmp dword [ebp - 0x20], 0
jne 0x538d7e
push 0xff0000
mov ecx, 0xffffff
mov edx, 0x538dd8
mov eax, dword [0x5ddd8c]
call fcn.00531b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538da8
lea eax, [ebp - 0x7c]
mov edx, 6
call fcn.00404c10
lea eax, [ebp - 0x30]
call fcn.00404bec
ret