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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c5b6
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x15c], esi
test esi, esi
je 0x10058501
test edi, edi
je 0x10058501
mov ecx, dword [esi + 0x1a90]
mov eax, 0x78787879
sub ecx, dword [esi + 0x1a8c]
imul ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
test ebx, ebx
jle 0x10058501
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], 7
mov word [ebp - 0xf8], ax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], 0xffffffff
mov dword [ebp - 0xbc], eax
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x158], eax
nop
mov esi, dword [esi + 0x1a8c]
add esi, eax
lea eax, [ebp - 0xf8]
cmp eax, esi
je 0x10057b6b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10057b5c
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0xf8]
push eax
call fcn.100052a0
lea eax, [esi + 0x18]
lea ecx, [ebp - 0xe0]
cmp ecx, eax
je 0x10057b91
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x10057b82
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xe0]
call fcn.100052a0
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0xc8], ecx
mov eax, dword [esi + 0x34]
add esi, 0x38
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc0]
cmp eax, esi
je 0x10057bc8
push dword [ebp - 0x15c]
mov ecx, eax
push dword [esi + 4]
push dword [esi]
call fcn.1006fb60
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
je 0x10057ca1
cmp ecx, edi
jne 0x10057ca1
cmp dword [edi + 0x4c], 8
lea ecx, [edi + 0x38]
jb 0x10057be4
mov ecx, dword [edi + 0x38]
cmp dword [ebp - 0xcc], 8
lea esi, [ebp - 0xe0]
mov edx, dword [ebp - 0xd0]
cmovae esi, dword [ebp - 0xe0]
cmp edx, dword [edi + 0x48]
jne 0x10057ca1
test edx, edx
je 0x10057c25
sub esi, ecx
nop dword [eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x10057ca1
add ecx, 2
sub edx, 1
jne 0x10057c10
cmp dword [ebp - 0xe4], 8
lea eax, [ebp - 0xf8]
push dword [ebp - 0xe8]
cmovae eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0x58]
push eax
mov dword [ebp - 0x154], 1
call fcn.100052a0
cmp dword [ebp - 0xcc], 8
lea eax, [ebp - 0xe0]
push dword [ebp - 0xd0]
cmovae eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0x40]
push eax
call fcn.100052a0
push dword [ebp - 0x15c]
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x20]
push dword [ebp - 0xbc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc4]
push dword [ebp - 0xc0]
mov dword [ebp - 0x24], eax
call fcn.1006fb60
mov eax, dword [ebp - 0x158]
mov esi, dword [ebp - 0x15c]
add eax, 0x44
mov dword [ebp - 0x158], eax
sub ebx, 1
jne 0x10057b40
mov ecx, dword [ebp - 0x154]
mov eax, dword [edi + 0x110]
test ecx, ecx
je 0x100582ec
lea ebx, [edi + 0x38]
lea edx, [edi + 0x114]
test eax, eax
je 0x100580bc
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x10057cee
mov ecx, dword [ebx]
cmp dword [edx + 0x14], 8
mov esi, edx
jb 0x10057cf8
mov esi, dword [edx]
mov edx, dword [edx + 0x10]
cmp edx, dword [ebx + 0x10]
jne 0x10057d26
test edx, edx
je 0x100584ee
sub esi, ecx
nop word [eax + eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x10057d26
add ecx, 2
sub edx, 1
jne 0x10057d10
jmp 0x100584ee
mov ecx, dword [edi + 0x168]
mov eax, 0x2e8ba2e9
mov esi, dword [edi + 0x164]
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10057eec
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ebx
nop dword [eax + eax]
mov eax, dword [esi + ebx]
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x150], eax
mov eax, dword [esi + ebx + 4]
mov dword [ebp - 0x14c], eax
mov eax, dword [esi + ebx + 8]
mov dword [ebp - 0x148], eax
lea eax, [ebx + 0xc]
add eax, esi
push eax
call fcn.10007640
lea eax, [ebx + 0x24]
mov byte [ebp - 4], 2
add eax, esi
lea ecx, [ebp - 0x12c]
push eax
call fcn.10007640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x110]
mov eax, dword [esi + ebx + 0x3c]
mov dword [ebp - 0x114], eax
lea eax, [ebx + 0x40]
add eax, esi
push eax
call fcn.10007640
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x10057ea0
mov esi, dword [eax + 0x104]
lea ebx, [eax + 0x104]
cmp esi, dword [ebx + 4]
je 0x10057e9a
nop dword [eax]
mov eax, dword [esi]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xb0], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xac], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xa8], eax
lea eax, [esi + 0xc]
push eax
call fcn.10007640
lea eax, [esi + 0x24]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x8c]
call fcn.10007640
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x74], eax
lea eax, [esi + 0x40]
push eax
call fcn.10007640
mov byte [ebp - 4], 7
cmp dword [ebp - 0xa8], edi
jne 0x10057e7f
mov eax, dword [ebp - 0xb0]
cmp eax, 0xffffffff
je 0x10057e7f
cmp eax, dword [edi + 0x160]
jne 0x10057e7f
push esi
lea eax, [ebp - 0x15c]
mov ecx, ebx
push eax
call fcn.1006e830
mov ecx, dword [ebp - 0x14c]
mov esi, dword [eax]
call fcn.10055a40
jmp 0x10057e82
add esi, 0x58
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.10056270
cmp esi, dword [ebx + 4]
jne 0x10057df0
mov ebx, dword [ebp - 0x154]
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
call fcn.10056270
mov ecx, dword [edi + 0x168]
mov eax, 0x2e8ba2e9
mov esi, dword [edi + 0x164]
add ebx, 0x58
inc dword [ebp - 0x158]
sub ecx, esi
imul ecx
mov dword [ebp - 0x154], ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x158], eax
jb 0x10057d60
lea ebx, [edi + 0x38]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
lea ecx, [edi + 0x114]
mov dword [ebp - 0x15c], eax
mov dword [edi + 0x160], eax
cmp ecx, ebx
je 0x10057f33
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x10057f2a
mov eax, dword [ebx]
push dword [ebx + 0x10]
push eax
call fcn.100052a0
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2e8ba2e9
mov esi, dword [ebp - 0x20]
xor edi, edi
sub ecx, esi
mov dword [ebp - 0x158], edi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100584ee
xor ebx, ebx
mov dword [ebp - 0x154], ebx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + ebx]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xb0], eax
mov eax, dword [esi + ebx + 4]
mov dword [ebp - 0xac], eax
mov eax, dword [esi + ebx + 8]
mov dword [ebp - 0xa8], eax
lea eax, [ebx + 0xc]
add eax, esi
push eax
call fcn.10007640
lea eax, [ebx + 0x24]
mov byte [ebp - 4], 8
add eax, esi
lea ecx, [ebp - 0x8c]
push eax
call fcn.10007640
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
mov eax, dword [esi + ebx + 0x3c]
mov dword [ebp - 0x74], eax
lea eax, [ebx + 0x40]
add eax, esi
push eax
call fcn.10007640
mov byte [ebp - 4], 0xa
mov ebx, dword [ebp - 0xac]
test ebx, ebx
je 0x10058071
mov esi, dword [ebx + 0x108]
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0xb0], eax
cmp esi, dword [ebx + 0x10c]
je 0x10058051
mov dword [esi], eax
lea ecx, [esi + 0xc]
mov eax, dword [ebp - 0xa8]
mov dword [esi + 8], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0x160], esi
mov dword [esi + 4], ebx
call fcn.10007640
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [esi + 0x24]
call fcn.10007640
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x40]
mov eax, dword [ebp - 0x74]
mov dword [esi + 0x3c], eax
lea eax, [ebp - 0x70]
push eax
call fcn.10007640
mov byte [ebp - 4], 0xa
add dword [ebx + 0x108], 0x58
jmp 0x10058064
lea eax, [ebp - 0xb0]
push eax
push esi
lea ecx, [ebx + 0x104]
call fcn.1006f540
mov ecx, ebx
call fcn.10055a40
mov edi, dword [ebp - 0x158]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.10056270
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2e8ba2e9
mov esi, dword [ebp - 0x20]
inc edi
mov ebx, dword [ebp - 0x154]
sub ecx, esi
imul ecx
add ebx, 0x58
mov dword [ebp - 0x158], edi
sar edx, 4
mov eax, edx
mov dword [ebp - 0x154], ebx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10057f70
jmp 0x100584ee
mov dword [edi + 0x110], ecx
cmp edx, ebx
je 0x100580db
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100580d0
mov eax, dword [ebx]
push dword [ebx + 0x10]
mov ecx, edx
push eax
call fcn.100052a0
lea esi, [edi + 0x12c]
lea eax, [ebp - 0x58]
cmp esi, eax
je 0x100580fb
cmp dword [ebp - 0x44], 8
mov ecx, esi
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.100052a0
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x10058116
cmp dword [ebp - 0x2c], 8
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.100052a0
mov eax, dword [ebp - 0x28]
lea ecx, [esi + 0x38]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x34], eax
lea eax, [ebp - 0x20]
cmp ecx, eax
je 0x1005813d
push dword [ebp - 0x160]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.1006fb60
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
sub ecx, esi
mov dword [edi + 0x160], eax
xor edi, edi
mov dword [ebp - 0x15c], eax
mov eax, 0x2e8ba2e9
imul ecx
mov dword [ebp - 0x158], edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100584ee
xor ebx, ebx
mov dword [ebp - 0x154], ebx
nop word [eax + eax]
mov eax, dword [esi + ebx]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xb0], eax
mov eax, dword [esi + ebx + 4]
mov dword [ebp - 0xac], eax
mov eax, dword [esi + ebx + 8]
mov dword [ebp - 0xa8], eax
lea eax, [ebx + 0xc]
add eax, esi
push eax
call fcn.10007640
lea eax, [ebx + 0x24]
mov byte [ebp - 4], 0xd
add eax, esi
lea ecx, [ebp - 0x8c]
push eax
call fcn.10007640
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
mov eax, dword [esi + ebx + 0x3c]
mov dword [ebp - 0x74], eax
lea eax, [ebx + 0x40]
add eax, esi
push eax
call fcn.10007640
mov byte [ebp - 4], 0xf
mov ebx, dword [ebp - 0xac]
test ebx, ebx
je 0x100582a1
mov esi, dword [ebx + 0x108]
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0xb0], eax
cmp esi, dword [ebx + 0x10c]
je 0x10058281
mov dword [esi], eax
lea ecx, [esi + 0xc]
mov eax, dword [ebp - 0xa8]
mov dword [esi + 8], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0x160], esi
mov dword [esi + 4], ebx
call fcn.10007640
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [esi + 0x24]
call fcn.10007640
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x40]
mov eax, dword [ebp - 0x74]
mov dword [esi + 0x3c], eax
lea eax, [ebp - 0x70]
push eax
call fcn.10007640
mov byte [ebp - 4], 0xf
add dword [ebx + 0x108], 0x58
jmp 0x10058294
lea eax, [ebp - 0xb0]
push eax
push esi
lea ecx, [ebx + 0x104]
call fcn.1006f540
mov ecx, ebx
call fcn.10055a40
mov edi, dword [ebp - 0x158]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.10056270
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2e8ba2e9
mov esi, dword [ebp - 0x20]
inc edi
mov ebx, dword [ebp - 0x154]
sub ecx, esi
imul ecx
add ebx, 0x58
mov dword [ebp - 0x158], edi
sar edx, 4
mov eax, edx
mov dword [ebp - 0x154], ebx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x100581a0
jmp 0x100584ee
test eax, eax
je 0x100584c0
mov ecx, dword [edi + 0x168]
mov eax, 0x2e8ba2e9
mov esi, dword [edi + 0x164]
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100584c0
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ecx
nop dword [eax]
mov eax, dword [esi + ecx]
mov dword [ebp - 0xb0], eax
mov eax, dword [esi + ecx + 4]
mov dword [ebp - 0xac], eax
mov eax, dword [esi + ecx + 8]
mov dword [ebp - 0xa8], eax
lea eax, [ecx + 0xc]
add eax, esi
lea ecx, [ebp - 0xa4]
push eax
call fcn.10007640
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x8c]
add eax, 0x24
mov byte [ebp - 4], 0x12
add eax, esi
push eax
call fcn.10007640
mov ecx, dword [ebp - 0x154]
mov byte [ebp - 4], 0x13
mov eax, dword [esi + ecx + 0x3c]
mov dword [ebp - 0x74], eax
lea eax, [ecx + 0x40]
add eax, esi
lea ecx, [ebp - 0x70]
push eax
call fcn.10007640
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x10058476
mov esi, dword [eax + 0x104]
lea ebx, [eax + 0x104]
cmp esi, dword [ebx + 4]
je 0x10058470
nop
mov eax, dword [esi]
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x150], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x14c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x148], eax
lea eax, [esi + 0xc]
push eax
call fcn.10007640
lea eax, [esi + 0x24]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x12c]
call fcn.10007640
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x110]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x114], eax
lea eax, [esi + 0x40]
push eax
call fcn.10007640
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0x148], edi
jne 0x10058455
mov eax, dword [ebp - 0x150]
cmp eax, 0xffffffff
je 0x10058455
cmp eax, dword [edi + 0x160]
jne 0x10058455
push esi
lea eax, [ebp - 0x160]
mov ecx, ebx
push eax
call fcn.1006e830
mov ecx, dword [ebp - 0xac]
mov esi, dword [eax]
call fcn.10055a40
jmp 0x10058458
add esi, 0x58
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0x14
call fcn.10056270
cmp esi, dword [ebx + 4]
jne 0x100583c0
mov ebx, dword [ebp - 0x158]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.10056270
mov ecx, dword [edi + 0x168]
mov eax, 0x2e8ba2e9
mov esi, dword [edi + 0x164]
inc ebx
add dword [ebp - 0x154], 0x58
sub ecx, esi
imul ecx
mov ecx, dword [ebp - 0x154]
sar edx, 4
mov eax, edx
mov dword [ebp - 0x158], ebx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10058330
lea eax, [edi + 0x114]
mov dword [edi + 0x110], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x100584df
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x160], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.100561c0
lea ecx, [ebp - 0x58]
call fcn.100561c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret