Function at 0x493e70
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x52ab20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8a0
push ebx
mov ebx, ecx
push ebp
push esi
mov byte [0x54dc7c], 2
mov al, byte [ebx + 0x34]
push edi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x44], ebx
test al, al
mov dword [esp + 0x4c], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x78], edi
jne 0x493eda
push str.CANPRINT
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x18], ebp
je 0x493eda
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.004a1910
mov esi, dword [esp + 0x8c4]
test al, al
je 0x49416b
mov ecx, dword [ebx + 0x10]
cmp ecx, edi
je 0x49416b
call fcn.004d0210
test eax, eax
je 0x49416b
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call fcn.00405cc0
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call fcn.00408220
test al, al
je 0x493f66
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
mov esi, 0x55802c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x8c4]
mov dword [esp + 0x38], ebp
mov byte [eax + ebp], 0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xb1]
mov byte [esp + 0xb0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
mov dword [esp + 0x8b8], 1
stosb byte es:[edi], al
mov dword [esp + 0x1c], 0
call fcn.00496d20
test ax, ax
jle 0x494125
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x8c8]
push edx
call fcn.004968b0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8bc], 2
call fcn.0048a5f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x8b8], 4
call fcn.0048a720
lea ecx, [esp + 0x10]
call fcn.0048ab70
lea ecx, [esp + 0x10]
mov ebp, eax
xor esi, esi
call fcn.0048ab50
test ax, ax
jle 0x494027
lea edi, [esp + 0xb0]
xor eax, eax
mov al, byte [esi + ebp]
push eax
push 0x54e778
push edi
call fcn.00514b75
add esp, 0xc
lea ecx, [esp + 0x10]
inc esi
add edi, 3
call fcn.0048ab50
movsx ecx, ax
cmp esi, ecx
jl 0x493fff
mov edi, 0x54e770
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call fcn.00408220
test al, al
je 0x49406d
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
mov esi, 0x54e770
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
mov byte [eax + ebp], 0
lea edi, [esp + 0xb0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x531160]
sub ecx, edx
cmp ecx, esi
ja 0x494095
call fcn.00514140
test esi, esi
jbe 0x4940dc
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x34]
lea ebp, [edx + esi]
push ebp
call fcn.00408220
test al, al
je 0x4940dc
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0xb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
call fcn.00408200
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4940e9
mov eax, 0x53115c
mov ecx, dword [ebx + 0x10]
push 0
push eax
call fcn.004aad20
lea ecx, [esp + 0x10]
mov byte [esp + 0x8b8], 1
call fcn.0048a720
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c4]
inc esi
mov dword [esp + 0x1c], esi
call fcn.00496d20
movsx eax, ax
cmp esi, eax
jl 0x493fa4
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x8b8], 0
je 0x494154
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49414b
cmp al, 0xff
je 0x49414b
dec al
mov byte [ecx], al
jmp 0x494154
push ecx
call fcn.00514120
add esp, 4
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x8c4]
mov al, byte [ebx + 4]
test al, al
jne 0x494184
mov edi, dword [ebx + 0x14]
mov ecx, 0x19
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x14]
mov dword [ebx + 0x1c], ecx
lea ecx, [esp + 0x50]
call fcn.004974f0
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x8b8], 5
cmp eax, 1
je 0x4942d5
mov edx, dword [ebx + 0x1c]
mov byte [edx], 2
mov eax, dword [ebx + 0x1c]
mov byte [eax + 1], 8
mov al, byte [esp + 0x8c8]
test al, al
je 0x4941c5
mov ecx, dword [ebx + 0x1c]
mov byte [ecx + 2], 0xff
jmp 0x4941cc
mov edx, dword [ebx + 0x1c]
mov byte [edx + 2], 0
mov ecx, esi
call fcn.00496d20
mov ecx, dword [ebx + 0x1c]
push 0xffff
mov byte [ecx + 3], al
mov eax, dword [ebx + 0x1c]
add eax, 4
mov ecx, esi
push eax
mov dword [ebx + 0x1c], eax
call fcn.00496d40
mov cl, byte [ebx + 4]
lea edi, [eax + 4]
test cl, cl
je 0x4942a4
mov edi, dword [ebx + 0x1c]
add ebx, 0x20
add edi, eax
lea edx, [esp + 0x44]
mov dword [ebx - 4], edi
mov eax, dword [ebx + 8]
push edx
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], 2
call fcn.004b7130
test ebp, ebp
je 0x49423f
lea eax, [esp + 0x74]
push eax
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x8c0]
mov cl, byte [esp + 0x50]
mov byte [esi], cl
lea ecx, [esp + 0x50]
call fcn.00495de0
test eax, eax
jge 0x49425b
xor eax, eax
shl eax, 4
push eax
call fcn.00514b36
mov edx, dword [esp + 0x5c]
add esp, 4
mov dword [esi + 4], eax
mov ecx, esi
push eax
mov eax, dword [esp + 0x58]
push edx
push eax
call fcn.00495e00
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x8b8], 6
push ecx
lea ecx, [esi + 0x10]
call fcn.0048bd10
mov dword [esp + 0x4c], 1
jmp 0x494409
call fcn.004a1910
test al, al
je 0x4942b7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x40], eax
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx]
push edi
push edx
call fcn.004ab500
mov al, byte [esp + 0x8c8]
test al, al
je 0x4942d5
mov dword [ebx + 0xc], 1
mov edi, dword [ebx + 0x18]
mov ecx, 0x19
xor eax, eax
push 0xffff
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx]
push eax
call fcn.004ab730
mov esi, eax
call fcn.004a1910
test al, al
je 0x494306
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x78], eax
test esi, esi
jne 0x494378
test ebp, ebp
je 0x494323
lea ecx, [esp + 0x74]
push ecx
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x8c0]
mov dl, byte [esp + 0x50]
lea ecx, [esp + 0x50]
mov byte [esi], dl
call fcn.00495de0
test eax, eax
jge 0x49433f
xor eax, eax
shl eax, 4
push eax
call fcn.00514b36
mov ecx, dword [esp + 0x58]
add esp, 4
mov dword [esi + 4], eax
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
mov ecx, esi
call fcn.00495e00
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea edx, [esp + 0x60]
mov byte [esp + 0x8b8], 7
push edx
jmp 0x4943f9
mov esi, dword [ebx + 0x18]
add esi, 8
movzx ax, byte [esi]
inc esi
test ax, ax
jne 0x494421
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4943a9
lea eax, [esp + 0x74]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x8c0]
mov cl, byte [esp + 0x50]
mov byte [esi], cl
lea ecx, [esp + 0x50]
call fcn.00495de0
test eax, eax
jge 0x4943c5
xor eax, eax
shl eax, 4
push eax
call fcn.00514b36
mov edx, dword [esp + 0x5c]
add esp, 4
mov dword [esi + 4], eax
mov ecx, esi
push eax
mov eax, dword [esp + 0x58]
push edx
push eax
call fcn.00495e00
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x8b8], 8
push ecx
lea ecx, [esi + 0x10]
call fcn.0048bd10
mov dword [esp + 0x4c], 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x8b8], 0
call fcn.004975f0
mov eax, esi
jmp 0x4949c3
movsx eax, ax
test eax, eax
jle 0x49452d
mov dword [esp + 0x10], eax
movzx di, byte [esi]
lea ecx, [esp + 0x1c]
inc esi
call fcn.0048a5e0
mov dl, byte [esp + 0x17]
xor ebp, ebp
mov byte [esp + 0x20], dl
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
movsx ebx, di
test ebx, ebx
mov byte [esp + 0x8b8], 0xa
jle 0x4944d0
movzx di, byte [esi]
inc esi
cmp di, 0xff
jne 0x494480
movzx di, byte [esi]
movzx ax, byte [esi + 1]
shl edi, 8
add edi, eax
add esi, 2
test di, di
je 0x4944af
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.0048ac30
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push 1
push edx
lea ecx, [esp + 0x2c]
call fcn.00405d10
movsx eax, di
add esi, eax
inc ebp
cmp ebp, ebx
jl 0x494463
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4944d0
mov ecx, dword [esp + 0x28]
sub ecx, eax
sar ecx, 2
je 0x4944d0
lea edx, [esp + 0x20]
lea ecx, [esp + 0x50]
push edx
call fcn.00497860
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, ebx
mov byte [esp + 0x8b8], 9
je 0x4944f2
mov ecx, edi
call fcn.0048a720
add edi, 4
cmp edi, ebx
jne 0x4944e4
mov eax, dword [esp + 0x24]
push eax
call fcn.00514120
xor eax, eax
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x8b8], 5
call fcn.0048a720
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x494430
mov esi, dword [esp + 0x18]
xor ebx, ebx
cmp esi, ebx
je 0x49454c
lea ecx, [esp + 0x74]
push ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x8c4]
lea edx, [esp + 0x50]
push edx
push eax
call fcn.00493e60
add esp, 8
call fcn.004a1910
test al, al
je 0x494841
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 0x10]
cmp ecx, ebx
je 0x494841
call fcn.004d0210
test eax, eax
je 0x494841
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x17]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x20], dl
push ecx
push 0x55802c
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00408160
lea ecx, [esp + 0x10]
mov byte [esp + 0x8b8], 0xb
call fcn.0048a5e0
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x4b0]
mov byte [esp + 0x4b0], 0
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x8bc], 0xc
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00408220
test al, al
je 0x494640
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
mov esi, 0x55802c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], ebx
call fcn.00497ad0
test ax, ax
jle 0x494803
xor ebx, ebx
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push esi
call fcn.00497a10
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4947ea
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x4947ea
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.00497a10
mov ecx, eax
call fcn.00405cb0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0048a5f0
lea ecx, [esp + 0x14]
call fcn.0048a8d0
lea ecx, [esp + 0x10]
call fcn.0048ab70
lea ecx, [esp + 0x10]
mov ebp, eax
xor esi, esi
call fcn.0048ab50
test ax, ax
jle 0x4946f3
lea edi, [esp + 0x4b0]
xor eax, eax
mov al, byte [esi + ebp]
push eax
push str._.2X
push edi
call fcn.00514b75
add esp, 0xc
lea ecx, [esp + 0x10]
inc esi
add edi, 3
call fcn.0048ab50
movsx ecx, ax
cmp esi, ecx
jl 0x4946cb
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x40]
sub edx, edi
lea eax, [esp + 0x7c]
push edx
push str._ld_Ans:
push eax
call fcn.00514b75
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00408220
test al, al
je 0x494757
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x7c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], 0
lea edi, [esp + 0x4b0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x531160]
sub ecx, edx
cmp ecx, esi
ja 0x49477f
call fcn.00514140
test esi, esi
jbe 0x4947c8
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x24]
lea ebp, [edx + esi]
push ebp
call fcn.00408220
test al, al
je 0x4947c8
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, esi
lea esi, [esp + 0x4b0]
lea edi, [edx + eax]
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]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4947d5
mov eax, 0x53115c
mov edx, dword [esp + 0x44]
push 0
push eax
mov ecx, dword [edx + 0x10]
call fcn.004aad20
inc ebx
jmp 0x494658
inc esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], esi
call fcn.00497ad0
movsx eax, ax
cmp esi, eax
jl 0x494656
lea ecx, [esp + 0x10]
mov byte [esp + 0x8b8], 0xb
call fcn.0048a720
mov eax, dword [esp + 0x24]
mov byte [esp + 0x8b8], 5
test eax, eax
je 0x494841
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x494838
cmp al, 0xff
je 0x494838
dec al
mov byte [ecx], al
jmp 0x494841
push ecx
call fcn.00514120
add esp, 4
mov ebx, dword [esp + 0x8c0]
mov cl, byte [esp + 0x50]
mov byte [ebx], cl
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x49485a
xor eax, eax
jmp 0x494863
mov eax, dword [esp + 0x58]
sub eax, ecx
sar eax, 4
test eax, eax
jge 0x494869
xor eax, eax
shl eax, 4
push eax
call fcn.00514b36
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
add esp, 4
cmp ebp, ecx
mov dword [ebx + 4], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], eax
je 0x49491e
add ebp, 4
mov dword [esp + 0x40], eax
test eax, eax
mov byte [esp + 0x8b8], 0xd
je 0x494905
mov dl, byte [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp]
test ecx, ecx
jne 0x4948b3
xor eax, eax
jmp 0x4948bb
mov eax, dword [ebp + 4]
sub eax, ecx
sar eax, 2
test eax, eax
jge 0x4948c1
xor eax, eax
shl eax, 2
push eax
call fcn.00514b36
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
mov dword [ecx + 4], eax
mov ebx, dword [ebp + 4]
mov esi, dword [ebp]
cmp esi, ebx
je 0x4948f4
push esi
push edi
call fcn.004061a0
add esi, 4
add esp, 8
add edi, 4
cmp esi, ebx
jne 0x4948e0
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x8c0]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov ecx, dword [esp + 0x44]
add ebp, 0x10
add eax, 0x10
lea edx, [ebp - 4]
mov dword [esp + 0x18], eax
cmp edx, ecx
jne 0x494893
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov ecx, dword [esp + 0x64]
mov al, byte [esp + 0x60]
test ecx, ecx
mov byte [esp + 0x8b8], 0xe
mov byte [ebx + 0x10], al
jne 0x49493f
xor eax, eax
jmp 0x494948
mov eax, dword [esp + 0x68]
sub eax, ecx
sar eax, 3
test eax, eax
jge 0x49494e
xor eax, eax
lea ecx, [eax*8]
push ecx
call fcn.00514b36
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
add esp, 4
mov esi, eax
cmp edi, ecx
mov dword [ebx + 0x14], eax
mov ebp, ecx
mov dword [esp + 0x44], esi
je 0x49499b
mov dword [esp + 0x40], esi
test esi, esi
mov byte [esp + 0x8b8], 0xf
je 0x49498d
push edi
mov ecx, esi
call fcn.00496140
add edi, 8
add esi, 8
cmp edi, ebp
mov dword [esp + 0x44], esi
jne 0x494975
mov dl, byte [esp + 0x70]
lea ecx, [esp + 0x50]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
mov byte [ebx + 0x20], dl
mov dword [esp + 0x4c], 1
mov byte [esp + 0x8b8], 0
call fcn.004975f0
mov eax, ebx
mov ecx, dword [esp + 0x8b0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8ac
ret 0xc