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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008aa9f
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x110dc
call fcn.10062090
mov eax, dword [0x1009a008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x11058], eax
mov eax, dword [ebp + 0x20]
mov esi, ecx
mov dword [ebp - 0x11034], eax
lea eax, [esi + 0x11fa4]
push eax
lea ecx, [ebp - 0x110ec]
mov dword [ebp - 0x11054], esi
mov dword [ebp - 0x11068], ebx
mov dword [ebp - 0x1108c], ebx
mov dword [ebp - 0x11064], ebx
mov byte [ebp - 0x1102d], bl
mov byte [ebp - 0x11039], bl
mov byte [ebp - 0x1103b], bl
mov dword [ebp - 0x110a0], ebx
mov dword [ebp - 0x11024], ebx
mov dword [ebp - 0x11098], ebx
mov dword [ebp - 0x11070], ebx
mov dword [ebp - 0x1106c], ebx
mov dword [ebp - 0x1107c], ebx
mov byte [ebp - 0x1103a], 0xff
mov dword [ebp - 0x11050], ebx
mov dword [ebp - 0x1104c], ebx
mov dword [ebp - 0x11048], ebx
mov dword [ebp - 0x11090], ebx
call fcn.10037ac7
mov edi, 0x4000000
cmp dword [esi + 0x11fc8], edi
mov dword [ebp - 4], ebx
jge 0x100559fa
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x11038], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x100559de
push edi
push dword [esi + 0x11fc8]
push 0x100093a8
push ebx
push 0x27
push eax
call fcn.10037a50
add esp, 0x18
jmp 0x100559e0
xor eax, eax
mov dword [ebp - 0x110bc], eax
mov byte [ebp - 4], bl
push 0x1008bdb8
lea eax, [ebp - 0x110bc]
push eax
call fcn.1006330f
mov ecx, esi
call fcn.1004074d
mov ecx, esi
call fcn.100455c5
mov edi, eax
cmp edi, 3
jle 0x10055a54
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x11038], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x10055a3c
push edi
push 0x10009358
push ebx
push 0xa
push eax
call fcn.10037a50
add esp, 0x14
jmp 0x10055a3e
xor eax, eax
mov dword [ebp - 0x1109c], eax
mov byte [ebp - 4], bl
push 0x1008bdb8
lea eax, [ebp - 0x1109c]
jmp 0x100559f4
mov eax, dword [esi + 8]
cmp byte [ebp + 0xc], 1
mov dword [eax + 0x10], 0xf000
setne al
dec al
and al, 0x20
push edi
mov ecx, esi
mov byte [esi + 0x11c76], bl
mov byte [esi + 0x11c75], 3
mov dword [esi + 0x11fcc], 0x940
mov byte [ebp - 0x1102c], al
mov byte [ebp - 4], 3
call fcn.10045169
push ebx
push ebx
push dword [esi + 0x11fd4]
push 0x20
call dword [esi + 0x11fd0]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x1102c]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push 1
push 3
call fcn.10044f52
push ebx
push ebx
push dword [esi + 0x11fd4]
push 4
call dword [esi + 0x11fd0]
mov ecx, dword [ebp - 0x11058]
add ecx, 0x38
mov eax, dword [ecx]
lea edx, [ebp - 0x11044]
push edx
mov dword [ebp - 0x1102c], ecx
call dword [eax + 8]
mov ecx, dword [eax]
push ebx
push dword [esi + 0x11fcc]
mov dword [ebp - 0x110c4], ecx
mov eax, dword [eax + 4]
push eax
push ecx
mov dword [ebp - 0x110c0], eax
call fcn.10063260
mov dword [ebp - 0x11078], eax
lea eax, [ebp - 0x11078]
push eax
lea eax, [ebp - 0x110c4]
push eax
push dword [esi + 0x11fd4]
mov dword [ebp - 0x11074], edx
push 5
call dword [esi + 0x11fd0]
mov edi, 0x1000
push edi
lea eax, [ebp - 0x11014]
push ebx
push eax
call fcn.100620c0
add esp, 0xc
push 0xff
push 1
push edi
lea eax, [ebp - 0x11014]
push eax
mov ecx, esi
call fcn.100410d1
lea eax, [ebp - 0x11090]
push eax
lea eax, [ebp - 0x1103a]
push eax
lea eax, [ebp - 0x11098]
push eax
lea eax, [ebp - 0x11024]
push eax
lea eax, [ebp - 0x110a0]
push eax
lea eax, [ebp - 0x1103b]
push eax
lea eax, [ebp - 0x11039]
push eax
lea eax, [ebp - 0x11014]
push eax
call fcn.100378c1
push edi
lea eax, [ebp - 0x1014]
push ebx
push eax
call fcn.100620c0
add esp, 0xc
push edi
lea eax, [ebp - 0x1014]
push eax
mov ecx, esi
call fcn.1004b18c
push ebx
push dword [ebp - 0x1001]
mov ecx, esi
push dword [ebp - 0x1002]
push dword [ebp - 0x1003]
call fcn.10046669
mov edi, eax
lea eax, [edi + 0x97]
cdq
xor eax, edx
sub eax, edx
inc eax
push 0x147f8
mov dword [ebp - 0x11028], eax
mov dword [ebp - 0x11024], edi
mov dword [ebp - 0x11070], edi
call fcn.10062b5c
pop ecx
mov ecx, eax
mov dword [ebp - 0x11038], ecx
mov byte [ebp - 4], 4
cmp ecx, ebx
je 0x10055c2e
push dword [ebp + 0xc]
push dword [ebp - 0x11034]
push dword [ebp - 0x11078]
push dword [ebp - 0x11028]
push edi
call fcn.1004f194
jmp 0x10055c30
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x11050], eax
cmp eax, ebx
jne 0x10055c84
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x10055c6a
push 0x100092f8
push ebx
push 4
push eax
call fcn.10037a50
add esp, 0x10
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x110b4], ebx
push 0x1008bdb8
lea eax, [ebp - 0x110b4]
jmp 0x100559f4
push 0x1100
call fcn.10062b5c
pop ecx
mov ecx, eax
mov dword [ebp - 0x11038], ecx
mov byte [ebp - 4], 6
cmp ecx, ebx
je 0x10055cc3
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x11034]
movzx eax, byte [eax + 0x31d]
push eax
push 1
push 0x96
push 0xffffff6a
call fcn.1004f4bc
jmp 0x10055cc5
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x1104c], eax
cmp eax, ebx
jne 0x10055d19
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x10055cff
push 0x10009298
push ebx
push 4
push eax
call fcn.10037a50
add esp, 0x10
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x11080], ebx
push 0x1008bdb8
lea eax, [ebp - 0x11080]
jmp 0x100559f4
push 0x10f8
call fcn.10062b5c
pop ecx
mov ecx, eax
mov dword [ebp - 0x11038], ecx
mov byte [ebp - 4], 8
cmp ecx, ebx
je 0x10055d52
mov eax, dword [ebp - 0x11034]
push dword [ebp + 0xc]
movzx eax, byte [eax + 0x31d]
push eax
push dword [ebp - 0x11078]
call fcn.1004f7bf
jmp 0x10055d54
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x11048], eax
cmp eax, ebx
jne 0x10055da8
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x10055d8e
push 0x10009238
push ebx
push 4
push eax
call fcn.10037a50
add esp, 0x10
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x110b8], ebx
push 0x1008bdb8
lea eax, [ebp - 0x110b8]
jmp 0x100559f4
push dword [esi + 0x11fbc]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call edi
test eax, eax
jne 0x10055e09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x10055def
push esi
push 0x100091d8
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x110a4], ebx
push 0x1008bdb8
lea eax, [ebp - 0x110a4]
jmp 0x100559f4
push dword [esi + 0x11fc0]
call edi
test eax, eax
jne 0x10055e64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x10055e4a
push esi
push 0x10009178
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x11088], ebx
push 0x1008bdb8
lea eax, [ebp - 0x11088]
jmp 0x100559f4
lea ecx, [esi + 0x3020]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x11c78]
call fcn.10041c43
mov eax, dword [ebp - 0x1102c]
mov dword [esi + 0x11c7c], eax
lea eax, [ebp - 0x1108c]
push eax
push ebx
push esi
push 0x10044a2b
push ebx
push ebx
mov dword [esi + 0x11fc4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x11068], eax
cmp eax, ebx
jne 0x10055efb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 0xc
cmp eax, ebx
je 0x10055ee1
push esi
push 0x10009128
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x110a8], ebx
push 0x1008bdb8
lea eax, [ebp - 0x110a8]
jmp 0x100559f4
lea eax, [ebp - 0x11068]
push eax
lea ecx, [ebp - 0x110e0]
call fcn.100379a4
mov eax, dword [esi + 0x11fc8]
cdq
mov ecx, 0xb0
idiv ecx
push ebx
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x11064], eax
lea eax, [ebp - 0x11064]
push eax
push dword [esi + 0x11fd4]
push 6
call dword [esi + 0x11fd0]
push dword [ebp - 0x11064]
push dword [esi + 0x11fbc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, ebx
je 0x10055fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 0xe
cmp eax, ebx
je 0x10055f89
push edi
push esi
push 0x100090c0
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x18
mov ebx, eax
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x11094], ebx
push 0x1008bdb8
lea eax, [ebp - 0x11094]
jmp 0x100559f4
push ebx
push ebx
push dword [esi + 0x11fd4]
push 7
call dword [esi + 0x11fd0]
push ebx
push ebx
push dword [esi + 0x11fd4]
push 0x28
call dword [esi + 0x11fd0]
mov dword [ebp - 0x11060], ebx
mov dword [ebp - 0x1105c], ebx
mov dword [ebp - 0x11034], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x11058], eax
mov dword [ebp - 0x1102c], eax
mov eax, dword [ebp - 0x11028]
mov dword [ebp - 0x11028], eax
mov edi, 0x9400
push 0xf000
lea eax, [ebp - 0x10014]
push ebx
push eax
call fcn.100620c0
mov ecx, dword [ebp - 0x11050]
add esp, 0xc
add ecx, 0x38
cmp dword [ebp - 0x11028], 0x10
jle 0x10056058
mov edx, dword [ecx]
lea eax, [ebp - 0x10014]
push eax
xor eax, eax
push eax
mov eax, edi
push eax
call dword [edx + 4]
push edi
push dword [ebp - 0x11024]
lea eax, [ebp - 0x10014]
push 0x10
push eax
mov ecx, esi
call fcn.10041963
sub dword [ebp - 0x11028], 0x10
add dword [ebp - 0x11024], 0x10
jmp 0x10055ff8
mov edi, dword [ebp - 0x11028]
imul edi, edi, 0x940
mov eax, edi
cdq
mov dword [ebp - 0x11040], edx
lea edx, [ebp - 0x10014]
push edx
push dword [ebp - 0x11040]
mov dword [ebp - 0x11044], eax
push dword [ebp - 0x11044]
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push dword [ebp - 0x11024]
lea eax, [ebp - 0x10014]
push dword [ebp - 0x11028]
mov ecx, esi
push eax
call fcn.10041963
mov eax, dword [ebp - 0x11028]
add dword [ebp - 0x11024], eax
mov dword [ebp - 0x11028], 0x96
mov edi, 0x9400
push 0xf000
lea eax, [ebp - 0x10014]
push ebx
push eax
call fcn.100620c0
mov ecx, dword [ebp - 0x1104c]
add esp, 0xc
add ecx, 0x38
cmp dword [ebp - 0x11028], 0x10
jle 0x10056121
mov edx, dword [ecx]
lea eax, [ebp - 0x10014]
push eax
xor eax, eax
push eax
mov eax, edi
push eax
call dword [edx + 4]
push edi
push dword [ebp - 0x11024]
lea eax, [ebp - 0x10014]
push 0x10
push eax
mov ecx, esi
call fcn.10041963
sub dword [ebp - 0x11028], 0x10
add dword [ebp - 0x11024], 0x10
jmp 0x100560c1
mov edi, dword [ebp - 0x11028]
imul edi, edi, 0x940
mov eax, edi
cdq
mov dword [ebp - 0x11040], edx
lea edx, [ebp - 0x10014]
push edx
push dword [ebp - 0x11040]
mov dword [ebp - 0x11044], eax
push dword [ebp - 0x11044]
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push dword [ebp - 0x11024]
mov edi, dword [ebp - 0x11028]
push edi
lea eax, [ebp - 0x10014]
push eax
mov ecx, esi
call fcn.10041963
add dword [ebp - 0x11024], edi
lea ecx, [esi + 0x3020]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
mov dword [ebp - 0x11038], edi
cmp edi, ebx
je 0x100563e5
cmp byte [edi + 0x19], 1
jne 0x100561b0
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x110ac], eax
push 0x1008bdb8
lea eax, [ebp - 0x110ac]
jmp 0x100559f4
push dword [edi + 0x24]
mov ecx, esi
push dword [ebp - 0x11024]
push dword [edi + 0x28]
push dword [edi + 0x2c]
call fcn.10041963
mov al, byte [edi + 0x18]
mov byte [ebp - 0x1102d], al
mov eax, dword [edi + 0x28]
add dword [ebp - 0x11024], eax
mov eax, dword [edi + 0x28]
cdq
add dword [ebp - 0x11060], eax
adc dword [ebp - 0x1105c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x11028], eax
cmp dword [ebp + 0x18], ebx
jbe 0x10056230
mov edx, dword [ebp + 0x18]
imul edx, edx, 0x3e8
mov ecx, eax
sub ecx, dword [ebp - 0x11058]
cmp ecx, edx
jbe 0x10056230
mov dword [ebp - 0x11058], eax
lea eax, [ebp - 0x11060]
push eax
lea eax, [ebp - 0x11078]
push eax
push dword [esi + 0x11fd4]
push 0xc
call dword [esi + 0x11fd0]
cmp dword [ebp + 0x1c], ebx
jbe 0x10056360
inc dword [ebp - 0x11034]
cmp dword [ebp - 0x11034], 8
jle 0x100562bd
xor eax, eax
lea edi, [ebp - 0x11020]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xc
lea eax, [ebp - 0x11020]
push eax
mov ecx, esi
mov dword [ebp - 0x11034], ebx
mov byte [ebp - 4], 0xf
call fcn.10041551
mov dword [ebp - 4], 0xd
jmp 0x100562bd
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x11028]
imul edx, edx, 0x3e8
mov ecx, eax
sub ecx, dword [ebp - 0x1102c]
cmp ecx, edx
jbe 0x10056360
movzx ecx, byte [ebp - 0x1101b]
mov dword [ebp - 0x1102c], eax
movzx eax, byte [ebp - 0x1101c]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x1101a]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x11019]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x11017]
mov dword [ebp - 0x1106c], eax
movzx eax, byte [ebp - 0x11018]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x11016]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x11015]
shl eax, 8
or eax, ecx
mov dword [ebp - 0x1107c], eax
lea eax, [ebp - 0x1107c]
push eax
lea eax, [ebp - 0x1106c]
push eax
push dword [esi + 0x11fd4]
push 0xd
call dword [esi + 0x11fd0]
push dword [ebp - 0x11038]
mov ecx, dword [esi + 0x11c78]
call fcn.10041c7a
push ebx
push dword [esi + 0x11fc0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10056176
cmp byte [esi + 0x11c76], 1
jne 0x10056176
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x11038], eax
mov byte [ebp - 4], 0x11
cmp eax, ebx
je 0x100563cb
push dword [ebp - 0x1105c]
push dword [ebp - 0x11060]
push 0x10009070
push ebx
push 0xe
push eax
call fcn.10037a50
add esp, 0x18
mov ebx, eax
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x110b0], ebx
push 0x1008bdb8
lea eax, [ebp - 0x110b0]
jmp 0x100559f4
cmp byte [ebp - 0x1102d], bl
jne 0x1005640e
push ebx
push ebx
push dword [esi + 0x11fd4]
push 0x19
call dword [esi + 0x11fd0]
push dword [0x10097748]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10056176
mov dword [ebp - 0x11028], 0x1a5e
mov edi, 0x9400
push 0xf000
lea eax, [ebp - 0x10014]
push ebx
push eax
call fcn.100620c0
mov ecx, dword [ebp - 0x11048]
add esp, 0xc
add ecx, 0x38
cmp dword [ebp - 0x11028], 0x10
jle 0x1005647d
mov edx, dword [ecx]
lea eax, [ebp - 0x10014]
push eax
xor eax, eax
push eax
mov eax, edi
push eax
call dword [edx + 4]
push edi
push dword [ebp - 0x11024]
lea eax, [ebp - 0x10014]
push 0x10
push eax
mov ecx, esi
call fcn.10041963
sub dword [ebp - 0x11028], 0x10
add dword [ebp - 0x11024], 0x10
jmp 0x1005641d
mov edi, dword [ebp - 0x11028]
imul edi, edi, 0x940
mov eax, edi
cdq
mov dword [ebp - 0x11040], edx
lea edx, [ebp - 0x10014]
push edx
push dword [ebp - 0x11040]
mov dword [ebp - 0x11044], eax
push dword [ebp - 0x11044]
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push dword [ebp - 0x11024]
mov edi, dword [ebp - 0x11028]
push edi
lea eax, [ebp - 0x10014]
push eax
mov ecx, esi
call fcn.10041963
add dword [ebp - 0x11024], edi
push ebx
push ebx
push dword [esi + 0x11fd4]
push 0x29
call dword [esi + 0x11fd0]
push ebx
push ebx
push dword [esi + 0x11fd4]
push 8
call dword [esi + 0x11fd0]
mov ecx, esi
call fcn.10053bef
push ebx
push ebx
push dword [esi + 0x11fd4]
push 9
call dword [esi + 0x11fd0]
lea ecx, [ebp - 0x110e0]
mov byte [ebp - 4], 3
call fcn.100379c7
mov ecx, dword [ebp - 0x11050]
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x1005652b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x1104c]
cmp ecx, ebx
je 0x1005653b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x11048]
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, esi
call fcn.10044f16
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110ec]
call fcn.10037af5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10062074
leave
ret 0x1c