Function at 0x1006766
Capabilities:
Allocate thread local storage
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0xa
ja 0x10067f0
cmp dword [ebp - 0x2e0], 0xa
je 0x10084d5
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2e4], eax
sub dword [ebp - 0x2e4], 1
je 0x100689b
sub dword [ebp - 0x2e4], 3
je 0x1006ef2
sub dword [ebp - 0x2e4], 2
je 0x100818e
sub dword [ebp - 0x2e4], 2
je 0x1006dfd
sub dword [ebp - 0x2e4], 1
je 0x1006e2e
jmp 0x1008a33
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2e8], eax
sub dword [ebp - 0x2e8], 0xb
je 0x100689b
sub dword [ebp - 0x2e8], 1
je 0x10088b7
sub dword [ebp - 0x2e8], 1
je 0x1006831
sub dword [ebp - 0x2e8], 1
je 0x1006ef2
jmp 0x1008a33
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsFree]
or dword [0x1099510], 0xffffffff
and dword [ebp - 0x10], 0
jmp 0x1006851
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x32
jae 0x1006896
push 2
pop ecx
mov eax, dword [ebp - 0x10]
lea edx, [eax*8 + 0x1099380]
xor eax, eax
inc eax
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x1006894
mov eax, dword [ebp - 0x10]
mov eax, dword [eax*8 + 0x1099384]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
and dword [eax*8 + 0x1099380], 0
push dword [ebp - 0x18]
call fcn.010091de
jmp 0x100684a
jmp 0x1008a47
cmp dword [0x1099510], 0xffffffff
jne 0x10068ee
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x10068bd
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10068ec
mov ecx, dword [ebp - 0x24]
mov edx, 0x1099510
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x10068e0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TlsFree]
jmp 0x10068ec
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.010091cf
jmp 0x100689b
cmp dword [ebp + 8], 0xb
jne 0x10068f9
jmp 0x1008a47
call fcn.010090d0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x78
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0x1c]
and dword [eax + 0x40], 0
mov eax, dword [ebp - 0x1c]
and dword [eax], 0
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 4
jbe 0x100692b
mov eax, dword [ebp - 0x1c]
mov dword [eax], 4
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jbe 0x100693e
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x44], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x44]
mov dword [eax + 0x58], ecx
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x3b], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x3a], 1
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x39], 1
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jbe 0x1006a61
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 8], 0
jne 0x10069a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
jmp 0x1008a53
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xc], 0
jne 0x10069d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
jmp 0x1008a53
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10], 0
jne 0x1006a05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
jmp 0x1008a53
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x18], 0
jne 0x1006a33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
jmp 0x1008a53
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x1c], 0
jne 0x1006a61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x1008a53
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
add eax, 7
and eax, 0xfffffff8
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [ecx + 0x50], edx
mov eax, dword [eax + 4]
mov dword [ecx + 0x54], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
add eax, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
add eax, 3
and eax, 0xfffffffc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ecx + 0x48], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
add eax, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x48]
sub eax, dword [ecx + 0x44]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
add eax, 3
and eax, 0xfffffffc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
add eax, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x2c]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x1c]
add eax, 0x3c
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x3c
push eax
call fcn.01008f72
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x1c]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x2c
push eax
call fcn.01008f72
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x1c]
add eax, 0x30
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x30
push eax
call fcn.01008f72
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
inc eax
and eax, 0xfffffffe
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
mov ecx, dword [ebp - 0x1c]
mov ax, word [eax]
mov word [ecx + 0x34], ax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
inc eax
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov cx, word [ecx + 0x34]
mov word [eax + 0x36], cx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x58]
mov dword [eax + 0x5c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jbe 0x1006cee
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1006be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x1008a53
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x1006bfa
jmp 0x1006c56
cmp dword [ebp - 0x44], 0x102
jne 0x1006c14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x1008a53
cmp dword [ebp - 0x44], 0x80
jne 0x1006c2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
jmp 0x1008a53
cmp dword [ebp - 0x44], 0xffffffff
jne 0x1006c45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
jmp 0x1008a53
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1006c77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
jmp 0x1008a53
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x1006c90
jmp 0x1006cec
cmp dword [ebp - 0x5c], 0x102
jne 0x1006caa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
jmp 0x1008a53
cmp dword [ebp - 0x5c], 0x80
jne 0x1006cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
jmp 0x1008a53
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x1006cdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
jmp 0x1008a53
jmp 0x1006cfb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push 0xe
call fcn.01006766
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x3b], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x3a], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x39], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x30]
mov dword [eax + 0x28], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
add eax, 3
and eax, 0xfffffffc
cmp dword [eax], 0xffffffff
jne 0x1006d36
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x38], 0
jmp 0x1006db3
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x1c]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x2c
push eax
call fcn.01008d66
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0x34]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 0x2c]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x1c]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x2c
push eax
call fcn.01008f72
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
inc eax
and eax, 0xfffffffe
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
mov ecx, dword [ebp - 0x1c]
mov ax, word [eax]
mov word [ecx + 0x34], ax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
inc eax
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jbe 0x1006df0
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1006de5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
jmp 0x1008a53
lea eax, [0x1006e2e]
mov dword [ebp - 0xc], eax
jmp 0x1006df8
lea esp, [ebp + 0x14]
jmp 0x1006ea3
jmp 0x1008a47
call fcn.01008d34
mov dword [ebp - 0x74], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x74]
cmp dword [eax], 0
jbe 0x1006e21
lea eax, [0x1006e36]
mov dword [ebp - 0xc], eax
jmp 0x1006e29
lea esp, [ebp + 0x14]
jmp 0x1006eaa
jmp 0x1008a47
call fcn.01008d34
push eax
jmp 0x1006e47
push 0xffffffffffffffff
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop eax
mov ecx, dword [eax + 0x28]
lea ebx, [0xb9568ba]
sub esp, 0x1c
mov dword [esp], ebx
lea ebx, [esp + 0x18]
mov dword [ebx], ecx
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x10], ecx
sub dword [esp], 0xa94fa28
mov dword [esp + 0xc], 4
mov dword [esp + 8], ebx
mov dword [esp + 4], ebx
jmp fcn.01008d66
call fcn.01008d34
jmp 0x1006e53
call fcn.01008d34
push eax
lea ecx, [0xd996630]
sub esp, 0x10
mov dword [esp], ecx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 4
sub dword [esp], 0xc98f744
je 0x1006ee5
add ecx, 4
add ecx, esi
sub ecx, dword [esp]
jmp fcn.01006766
push esi
push edi
jmp fcn.01008d66
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
jbe 0x1006f91
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x1006f1d
jmp 0x1006f91
cmp dword [ebp - 0x80], 0x102
jne 0x1006f3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
jmp 0x1008a53
cmp dword [ebp - 0x80], 0x80
jne 0x1006f5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
jmp 0x1008a53
cmp dword [ebp - 0x80], 0xffffffff
jne 0x1006f7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x78]
mov eax, dword [eax + 0x48]
sub eax, dword [ecx + 0x44]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax + 0x38]
test eax, eax
je 0x1006fe1
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
jbe 0x1006fda
mov eax, dword [ebp - 0x78]
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1006fda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
jmp 0x1008a53
xor eax, eax
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax + 0x39]
test eax, eax
jne 0x1007a80
mov eax, dword [ebp - 0x78]
mov byte [eax + 0x39], 1
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x78]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x2c
push eax
call fcn.01008d66
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x78]
add eax, 0x30
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x30
push eax
call fcn.01008d66
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x98], eax
and dword [ebp - 0xa8], 0
and dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 1
and dword [ebp - 0x9c], 0
push 0
push 1
mov eax, dword [ebp - 0x78]
add eax, 0x50
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x36]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x2c]
sub ecx, eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x30]
sub eax, ecx
push eax
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x78]
push dword [eax + 0x5c]
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x36]
push eax
mov eax, dword [ebp - 0x78]
push dword [eax + 0x30]
call fcn.01008b2a
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x78]
add eax, 0x3c
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x3c
push eax
call fcn.01008d66
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x50
push eax
call fcn.01008b06
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x78]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x2c
push eax
call fcn.01008f72
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x78]
add eax, 0x30
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x30
push eax
call fcn.01008f72
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x78]
add eax, 0x3c
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x3c
push eax
call fcn.01008f72
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x58]
mov dword [eax + 0x5c], ecx
mov eax, dword [ebp - 0x78]
cmp dword [eax], 3
jbe 0x1007464
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x100717a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
jmp 0x1008a53
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x1007199
jmp 0x1007216
cmp dword [ebp - 0xb0], 0x102
jne 0x10071bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
jmp 0x1008a53
cmp dword [ebp - 0xb0], 0x80
jne 0x10071df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
jmp 0x1008a53
cmp dword [ebp - 0xb0], 0xffffffff
jne 0x10071ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x100723d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
jmp 0x1008a53
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x100725c
jmp 0x10072d9
cmp dword [ebp - 0xc8], 0x102
jne 0x100727f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
jmp 0x1008a53
cmp dword [ebp - 0xc8], 0x80
jne 0x10072a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
jmp 0x1008a53
cmp dword [ebp - 0xc8], 0xffffffff
jne 0x10072c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1007300
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1007327
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
jmp 0x1008a53
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
jne 0x1007346
jmp 0x10073c3
cmp dword [ebp - 0xe4], 0x102
jne 0x1007369
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
jmp 0x1008a53
cmp dword [ebp - 0xe4], 0x80
jne 0x100738c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
jmp 0x1008a53
cmp dword [ebp - 0xe4], 0xffffffff
jne 0x10073ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
jmp 0x1008a53
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
jne 0x10073e2
jmp 0x100745f
cmp dword [ebp - 0xf8], 0x102
jne 0x1007405
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
jmp 0x1008a53
cmp dword [ebp - 0xf8], 0x80
jne 0x1007428
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
jmp 0x1008a53
cmp dword [ebp - 0xf8], 0xffffffff
jne 0x1007448
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
jmp 0x1008a53
jmp 0x10076dd
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
jbe 0x10076d0
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1007497
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10074be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
cmp dword [eax], 3
jae 0x10074d3
push dword [ebp + 0x10]
push dword [ebp - 0x78]
push 0xe
call fcn.01006766
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x10074f2
jmp 0x100756f
cmp dword [ebp - 0x114], 0x102
jne 0x1007515
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
jmp 0x1008a53
cmp dword [ebp - 0x114], 0x80
jne 0x1007538
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
jmp 0x1008a53
cmp dword [ebp - 0x114], 0xffffffff
jne 0x1007558
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
jmp 0x1008a53
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x100758e
jmp 0x100760b
cmp dword [ebp - 0x128], 0x102
jne 0x10075b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
jmp 0x1008a53
cmp dword [ebp - 0x128], 0x80
jne 0x10075d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
jmp 0x1008a53
cmp dword [ebp - 0x128], 0xffffffff
jne 0x10075f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1007632
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
jmp 0x1008a53
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jne 0x1007651
jmp 0x10076ce
cmp dword [ebp - 0x140], 0x102
jne 0x1007674
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
jmp 0x1008a53
cmp dword [ebp - 0x140], 0x80
jne 0x1007697
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
jmp 0x1008a53
cmp dword [ebp - 0x140], 0xffffffff
jne 0x10076b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
jmp 0x1008a53
jmp 0x10076dd
push dword [ebp + 0x10]
push dword [ebp - 0x78]
push 0xe
call fcn.01006766
mov eax, dword [ebp - 0x78]
mov byte [eax + 0x3b], 0
mov eax, dword [ebp - 0x78]
mov byte [eax + 0x3a], 0
mov eax, dword [ebp - 0x78]
mov byte [eax + 0x39], 0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x30]
mov dword [eax + 0x28], ecx
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax + 0x38]
test eax, eax
jne 0x1007834
push 0xff
push 1
call fcn.01008ab5
mov dword [ebp - 4], eax
and dword [ebp - 0x154], 0
jmp 0x1007732
mov eax, dword [ebp - 0x154]
inc eax
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x36]
cmp dword [ebp - 0x154], eax
jae 0x1007766
mov eax, dword [ebp - 0x154]
add eax, 0x80
imul eax, dword [ebp - 0x154]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x98]
add ecx, dword [ebp - 0x154]
mov byte [ecx], al
jmp 0x1007725
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x78]
mov cx, word [ecx + 0x34]
mov word [eax + 0x36], cx
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x78]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x2c
push eax
call fcn.01008d66
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x34]
mov ecx, dword [ebp - 0x78]
add eax, dword [ecx + 0x2c]
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x78]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x2c
push eax
call fcn.01008f72
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x58]
inc eax
and eax, 0xfffffffe
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x58]
mov ecx, dword [ebp - 0x78]
mov ax, word [eax]
mov word [ecx + 0x34], ax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x58]
inc eax
inc eax
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
jbe 0x100782d
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1007820
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
jmp 0x1008a53
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006ef8
xor eax, eax
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x78]
mov cx, word [ecx + 0x34]
mov word [eax + 0x36], cx
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
jbe 0x1007a79
mov eax, dword [ebp - 0x78]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1007875
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
jmp 0x1008a53
mov dword [ebp - 0x160], 1
jmp 0x100788e
mov eax, dword [ebp - 0x160]
inc eax
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
dec eax
cmp dword [ebp - 0x160], eax
jae 0x1007968
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10078c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
jmp 0x1008a53
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
jne 0x10078e6
jmp 0x1007963
cmp dword [ebp - 0x168], 0x102
jne 0x1007909
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
jmp 0x1008a53
cmp dword [ebp - 0x168], 0x80
jne 0x100792c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
jmp 0x1008a53
cmp dword [ebp - 0x168], 0xffffffff
jne 0x100794c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x178]
jmp 0x1008a53
jmp 0x1007881
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100798f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10079b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x180]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10079dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1007a04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1007a2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x18c]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1007a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x190]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1007a79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x194]
jmp 0x1008a53
xor eax, eax
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax + 0x3b]
test eax, eax
jne 0x1008127
mov eax, dword [ebp - 0x78]
mov byte [eax + 0x3b], 1
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
jbe 0x1007b65
mov eax, dword [ebp - 0x78]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1007ac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
jmp 0x1008a53
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1d8], eax
cmp dword [ebp - 0x1d8], 0
jne 0x1007ae8
jmp 0x1007b65
cmp dword [ebp - 0x1d8], 0x102
jne 0x1007b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
jmp 0x1008a53
cmp dword [ebp - 0x1d8], 0x80
jne 0x1007b2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1e0]
jmp 0x1008a53
cmp dword [ebp - 0x1d8], 0xffffffff
jne 0x1007b4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e4]
jmp 0x1008a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
jmp 0x1008a53
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x34]
mov ecx, 0x1fc4
sub ecx, eax
push ecx
push 0
call fcn.01008ab5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x58]
add eax, 3
and eax, 0xfffffffc
cmp dword [eax], 0xffffffff
jne 0x1007bd7
mov eax, dword [ebp - 0x78]
mov byte [eax + 0x38], 1
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
jbe 0x1007bc5
mov eax, dword [ebp - 0x78]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1007bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
jmp 0x1008a53
cmp dword [ebp + 8], 0xe
jne 0x1007bd2
xor eax, eax
jmp 0x1008a53
jmp 0x1006ef8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x78]
add eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x78]
add eax, dword [ecx + 8]
add eax, dword [ebp - 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x1a6]
movzx ecx, word [ebp - 0x1a8]
add eax, ecx
movzx ecx, word [ebp - 0x1ae]
add eax, ecx
mov ecx, dword [ebp - 0x78]
add eax, dword [ecx + 0x1c]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x34]
mov ecx, 0x1fc4
sub ecx, eax
inc ecx
mov eax, dword [ebp - 4]
cdq
idiv ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x40]
xor eax, 0x1fc4
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x78]
add eax, 0x3c
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x3c
push eax
call fcn.01008d66
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x78]
add eax, dword [ecx + 0x40]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x78]
add eax, 0x3c
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x3c
push eax
call fcn.01008f72
mov eax, dword [ebp - 0x78]
mov ax, word [eax + 0x50]
mov word [ebp - 0x1a0], ax
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x78]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x78]
add eax, 0x2c
push eax
call fcn.01008d66
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x58]
inc eax
and eax, 0xfffffffe
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x58]
mov ax, word [eax]
mov word [ebp - 0x1a4], ax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x58]
inc eax
inc eax
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x58], eax
movzx eax, word [ebp - 0x1a4]
movzx ecx, word [ebp - 0x1a0]
xor eax, ecx
mov word [ebp - 0x1a4], ax
movzx eax, word [ebp - 0x1a4]
cmp eax, 0xffff
je 0x1007e6d
movzx eax, word [ebp - 0x1a4]
push eax
mov eax, dword [ebp - 0x78]
push dword [eax + 0x2c]
call fcn.01008d1f
mov dword [ebp - 0x1f8], eax
movzx eax, word [ebp - 0x1a4]
push eax
mov eax, dword [ebp - 0x78]
push dword [eax + 0x30]
call fcn.01008d1f
mov dword [ebp - 0x1f0], eax
movzx eax, word [ebp - 0x1a4]
push eax
call fcn.01008d2e
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
mov eax, dword [ebp - 0x1f0]
sub eax, dword [ebp - 0x1bc]
push eax
push dword [ebp - 0x1bc]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x1bc]
sub ecx, dword [eax + 0x30]
mov eax, dword [ebp - 0x78]
add ecx, dword [eax + 0x2c]
push ecx
call fcn.01008d66
mov ecx, dword [ebp - 0x1f4]
mov esi, dword [ebp - 0x1f8]
mov edi, dword [ebp - 0x1f0]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x7c]
push dword [ebp - 0x1f4]
push dword [ebp - 0x1f0]
call fcn.01008d10
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
push dword [ebp - 0x1f4]
push dword [ebp - 0x1f0]
push dword [ebp - 0x1f0]
call fcn.01008d66
mov eax, dword [ebp - 0x7c]
neg eax
push eax
push dword [ebp - 0x1f4]
push dword [ebp - 0x1f0]
call fcn.01008d10
mov eax, dword [ebp - 0x1f0]
add eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x58]
inc eax
and eax, 0xfffffffe
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x58]
mov ax, word [eax]
mov word [ebp - 0x1a4], ax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x58]
inc eax
inc eax
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x58], eax
movzx eax, word [ebp - 0x1a4]
movzx ecx, word [ebp - 0x1a0]
xor eax, ecx
mov word [ebp - 0x1a4], ax
jmp 0x1007d1b
mov eax, dword [ebp - 0x78]
push dword [eax + 0x54]
push dword [eax + 0x50]
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x34]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x30]
add ecx, eax
sub ecx, dword [ebp - 0x1bc]
push ecx
push dword [ebp - 0x1bc]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x1bc]
sub ecx, dword [eax + 0x30]
mov eax, dword [ebp - 0x78]
add ecx, dword [eax + 0x2c]
push ecx
call fcn.01008d66
and dword [ebp - 0x1d0], 0
and dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 1
and dword [ebp - 0x1c4], 0
push 0
push 0
mov eax, dword [ebp - 0x78]
add eax, 0x50
push eax
lea eax, [ebp - 0x1c8]
push eax
push 0
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x78]
push dword [eax + 0x5c]
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x34]
push eax
mov eax, dword [ebp - 0x78]
push dword [eax + 0x30]
call fcn.01008b2a
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], edx
lea ecx, [0x10f1aec9]
add ecx, dword [ebp - 0x1c8]
sub ecx, dword [ebp - 0x1d0]
sub ecx, 0xff12faa
jmp ecx
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax + 0x3a]
test eax, eax
jne 0x1008175
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
jbe 0x1008175
mov eax, dword [ebp - 0x78]
mov byte [eax + 0x3a], 1
mov eax, dword [ebp - 0x78]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1008168
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
jmp 0x1008a53
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006ef8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20c], eax
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.01008d34
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x210]
mov eax, dword [eax + 0x48]
sub eax, dword [ecx + 0x44]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x210]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x210]
add eax, 0x30
push eax
mov eax, dword [ebp - 0x210]
add eax, 0x30
push eax
call fcn.01008d66
mov eax, dword [ebp - 0x210]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x210]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x210]
add eax, 0x2c
push eax
call fcn.01008d66
and dword [ebp - 0x228], 0
and dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 1
and dword [ebp - 0x21c], 0
push 0
push 1
mov eax, dword [ebp - 0x210]
add eax, 0x50
push eax
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0x34]
mov ecx, dword [ebp - 0x210]
mov ecx, dword [ecx + 0x2c]
sub ecx, eax
mov eax, dword [ebp - 0x210]
mov eax, dword [eax + 0x30]
sub eax, ecx
push eax
push dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
push dword [eax + 0x5c]
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0x34]
push eax
mov eax, dword [ebp - 0x210]
push dword [eax + 0x30]
call fcn.01008b2a
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], edx
lea ecx, [0xff132e2]
add ecx, dword [ebp - 0x220]
sub ecx, dword [ebp - 0x228]
sub ecx, 0xef0b040
jmp ecx
call fcn.01008d34
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov byte [eax + 0x38], 1
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x258]
mov eax, dword [eax + 0x48]
sub eax, dword [ecx + 0x44]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x258]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x258]
add eax, 0x30
push eax
mov eax, dword [ebp - 0x258]
add eax, 0x30
push eax
call fcn.01008d66
mov eax, dword [ebp - 0x258]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x258]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x258]
add eax, 0x2c
push eax
call fcn.01008d66
and dword [ebp - 0x270], 0
and dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 1
and dword [ebp - 0x264], 0
push 0
push 1
mov eax, dword [ebp - 0x258]
add eax, 0x50
push eax
lea eax, [ebp - 0x268]
push eax
mov eax, dword [ebp - 0x258]
movzx eax, word [eax + 0x36]
mov ecx, dword [ebp - 0x258]
mov ecx, dword [ecx + 0x2c]
sub ecx, eax
mov eax, dword [ebp - 0x258]
mov eax, dword [eax + 0x30]
sub eax, ecx
push eax
push dword [ebp - 0x25c]
mov eax, dword [ebp - 0x258]
push dword [eax + 0x5c]
mov eax, dword [ebp - 0x258]
movzx eax, word [eax + 0x36]
push eax
mov eax, dword [ebp - 0x258]
push dword [eax + 0x30]
call fcn.01008b2a
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], edx
lea ecx, [0xce5e543]
add ecx, dword [ebp - 0x268]
sub ecx, dword [ebp - 0x270]
sub ecx, 0xbe55f50
jmp ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x2b0]
mov eax, dword [eax + 0x48]
sub eax, dword [ecx + 0x44]
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x2b0]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x2b0]
add eax, 0x30
push eax
mov eax, dword [ebp - 0x2b0]
add eax, 0x30
push eax
call fcn.01008d66
mov eax, dword [ebp - 0x2b0]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x2b0]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x2b0]
add eax, 0x2c
push eax
call fcn.01008d66
and dword [ebp - 0x2c8], 0
and dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 1
and dword [ebp - 0x2bc], 0
push 1
push 0
mov eax, dword [ebp - 0x2b0]
add eax, 0x50
push eax
lea eax, [ebp - 0x2c0]
push eax
mov eax, dword [ebp - 0x2b0]
movzx eax, word [eax + 0x36]
mov ecx, dword [ebp - 0x2b0]
mov ecx, dword [ecx + 0x2c]
sub ecx, eax
mov eax, dword [ebp - 0x2b0]
mov eax, dword [eax + 0x30]
sub eax, ecx
push eax
push dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2b0]
push dword [eax + 0x5c]
mov eax, dword [ebp - 0x2b0]
movzx eax, word [eax + 0x36]
push eax
mov eax, dword [ebp - 0x2b0]
push dword [eax + 0x30]
call fcn.01008b2a
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2c4], edx
mov eax, dword [ebp - 0x2b0]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x2b0]
add eax, 0x30
push eax
mov eax, dword [ebp - 0x2b0]
add eax, 0x30
push eax
call fcn.01008f72
mov eax, dword [ebp - 0x2b0]
push dword [eax + 0x54]
push dword [eax + 0x50]
push 4
mov eax, dword [ebp - 0x2b0]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0x2b0]
add eax, 0x2c
push eax
call fcn.01008f72
lea ecx, [0xc04535b]
add ecx, dword [ebp - 0x2c0]
sub ecx, dword [ebp - 0x2c8]
sub ecx, 0xb03c944
jmp ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2cc]
jmp 0x1008a53
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc