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

Disassembly:
push 0xffffffffffffffff
push 0x570f40
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 [0x5bdc24], 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 0x54271a
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 0x54271a
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00548040
mov esi, dword [esp + 0x8c4]
test al, al
je 0x5429ab
mov ecx, dword [ebx + 0x10]
cmp ecx, edi
je 0x5429ab
call fcn.00546290
test eax, eax
je 0x5429ab
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call fcn.00404bb0
mov edi, 0x5c65b8
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.00404d70
test al, al
je 0x5427a6
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
mov esi, 0x5c65b8
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.0053b740
test ax, ax
jle 0x542965
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x8c8]
push edx
call fcn.0053b690
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8bc], 2
call fcn.00531810
lea ecx, [esp + 0x20]
mov byte [esp + 0x8b8], 4
call fcn.00531940
lea ecx, [esp + 0x10]
call fcn.00531b60
lea ecx, [esp + 0x10]
mov ebp, eax
xor esi, esi
call fcn.00531b50
test ax, ax
jle 0x542867
lea edi, [esp + 0xb0]
xor eax, eax
mov al, byte [esi + ebp]
push eax
push str._.2x
push edi
call fcn.00556aa4
add esp, 0xc
lea ecx, [esp + 0x10]
inc esi
add edi, 3
call fcn.00531b50
movsx ecx, ax
cmp esi, ecx
jl 0x54283f
mov edi, str.Req:
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.00404d70
test al, al
je 0x5428ad
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
mov esi, str.Req:
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 [0x57217c]
sub ecx, edx
cmp ecx, esi
ja 0x5428d5
call fcn.0055636b
test esi, esi
jbe 0x54291c
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x34]
lea ebp, [edx + esi]
push ebp
call fcn.00404d70
test al, al
je 0x54291c
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.00404d50
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x542929
mov eax, 0x572184
mov ecx, dword [ebx + 0x10]
push 0
push eax
call fcn.00546cb0
lea ecx, [esp + 0x10]
mov byte [esp + 0x8b8], 1
call fcn.00531940
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c4]
inc esi
mov dword [esp + 0x1c], esi
call fcn.0053b740
movsx eax, ax
cmp esi, eax
jl 0x5427e4
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x8b8], 0
je 0x542994
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x54298b
cmp al, 0xff
je 0x54298b
dec al
mov byte [ecx], al
jmp 0x542994
push ecx
call fcn.00556360
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 0x5429c4
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.00539ea0
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x8b8], 5
cmp eax, 1
je 0x542b15
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 0x542a05
mov ecx, dword [ebx + 0x1c]
mov byte [ecx + 2], 0xff
jmp 0x542a0c
mov edx, dword [ebx + 0x1c]
mov byte [edx + 2], 0
mov ecx, esi
call fcn.0053b740
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.0053b760
mov cl, byte [ebx + 4]
lea edi, [eax + 4]
test cl, cl
je 0x542ae4
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.00543d40
test ebp, ebp
je 0x542a7f
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.00543b70
test eax, eax
jge 0x542a9b
xor eax, eax
shl eax, 4
push eax
call fcn.00556a96
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.0053aaa0
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.0053cca0
mov dword [esp + 0x4c], 1
jmp 0x542c49
call fcn.00548040
test al, al
je 0x542af7
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.00550ca0
mov al, byte [esp + 0x8c8]
test al, al
je 0x542b15
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.00550ed0
mov esi, eax
call fcn.00548040
test al, al
je 0x542b46
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x78], eax
test esi, esi
jne 0x542bb8
test ebp, ebp
je 0x542b63
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.00543b70
test eax, eax
jge 0x542b7f
xor eax, eax
shl eax, 4
push eax
call fcn.00556a96
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.0053aaa0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea edx, [esp + 0x60]
mov byte [esp + 0x8b8], 7
push edx
jmp 0x542c39
mov esi, dword [ebx + 0x18]
add esi, 8
movzx ax, byte [esi]
inc esi
test ax, ax
jne 0x542c61
mov esi, dword [esp + 0x18]
test esi, esi
je 0x542be9
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.00543b70
test eax, eax
jge 0x542c05
xor eax, eax
shl eax, 4
push eax
call fcn.00556a96
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.0053aaa0
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.0053cca0
mov dword [esp + 0x4c], 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x8b8], 0
call fcn.00539fa0
mov eax, esi
jmp 0x543203
movsx eax, ax
test eax, eax
jle 0x542d6d
mov dword [esp + 0x10], eax
movzx di, byte [esi]
lea ecx, [esp + 0x1c]
inc esi
call fcn.00531800
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 0x542d10
movzx di, byte [esi]
inc esi
cmp di, 0xff
jne 0x542cc0
movzx di, byte [esi]
movzx ax, byte [esi + 1]
shl edi, 8
add edi, eax
add esi, 2
test di, di
je 0x542cef
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.00531c20
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push 1
push edx
lea ecx, [esp + 0x2c]
call fcn.00404e90
movsx eax, di
add esi, eax
inc ebp
cmp ebp, ebx
jl 0x542ca3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x542d10
mov ecx, dword [esp + 0x28]
sub ecx, eax
sar ecx, 2
je 0x542d10
lea edx, [esp + 0x20]
lea ecx, [esp + 0x50]
push edx
call fcn.0053a210
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, ebx
mov byte [esp + 0x8b8], 9
je 0x542d32
mov ecx, edi
call fcn.00531940
add edi, 4
cmp edi, ebx
jne 0x542d24
mov eax, dword [esp + 0x24]
push eax
call fcn.00556360
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.00531940
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x542c70
mov esi, dword [esp + 0x18]
xor ebx, ebx
cmp esi, ebx
je 0x542d8c
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.0048e3b0
add esp, 8
call fcn.00548040
test al, al
je 0x543081
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 0x10]
cmp ecx, ebx
je 0x543081
call fcn.00546290
test eax, eax
je 0x543081
mov edi, 0x5c65b8
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 0x5c65b8
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0040a330
lea ecx, [esp + 0x10]
mov byte [esp + 0x8b8], 0xb
call fcn.00531800
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, 0x5c65b8
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.00404d70
test al, al
je 0x542e80
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
mov esi, 0x5c65b8
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.0053a480
test ax, ax
jle 0x543043
xor ebx, ebx
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push esi
call fcn.0053a3c0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x54302a
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x54302a
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.0053a3c0
mov ecx, eax
call fcn.0042ab20
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00531810
lea ecx, [esp + 0x14]
call fcn.005319b0
lea ecx, [esp + 0x10]
call fcn.00531b60
lea ecx, [esp + 0x10]
mov ebp, eax
xor esi, esi
call fcn.00531b50
test ax, ax
jle 0x542f33
lea edi, [esp + 0x4b0]
xor eax, eax
mov al, byte [esi + ebp]
push eax
push str._.2X
push edi
call fcn.00556aa4
add esp, 0xc
lea ecx, [esp + 0x10]
inc esi
add edi, 3
call fcn.00531b50
movsx ecx, ax
cmp esi, ecx
jl 0x542f0b
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.00556aa4
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.00404d70
test al, al
je 0x542f97
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 [0x57217c]
sub ecx, edx
cmp ecx, esi
ja 0x542fbf
call fcn.0055636b
test esi, esi
jbe 0x543008
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x24]
lea ebp, [edx + esi]
push ebp
call fcn.00404d70
test al, al
je 0x543008
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 0x543015
mov eax, 0x572184
mov edx, dword [esp + 0x44]
push 0
push eax
mov ecx, dword [edx + 0x10]
call fcn.00546cb0
inc ebx
jmp 0x542e98
inc esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], esi
call fcn.0053a480
movsx eax, ax
cmp esi, eax
jl 0x542e96
lea ecx, [esp + 0x10]
mov byte [esp + 0x8b8], 0xb
call fcn.00531940
mov eax, dword [esp + 0x24]
mov byte [esp + 0x8b8], 5
test eax, eax
je 0x543081
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x543078
cmp al, 0xff
je 0x543078
dec al
mov byte [ecx], al
jmp 0x543081
push ecx
call fcn.00556360
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 0x54309a
xor eax, eax
jmp 0x5430a3
mov eax, dword [esp + 0x58]
sub eax, ecx
sar eax, 4
test eax, eax
jge 0x5430a9
xor eax, eax
shl eax, 4
push eax
call fcn.00556a96
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 0x54315e
add ebp, 4
mov dword [esp + 0x40], eax
test eax, eax
mov byte [esp + 0x8b8], 0xd
je 0x543145
mov dl, byte [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp]
test ecx, ecx
jne 0x5430f3
xor eax, eax
jmp 0x5430fb
mov eax, dword [ebp + 4]
sub eax, ecx
sar eax, 2
test eax, eax
jge 0x543101
xor eax, eax
shl eax, 2
push eax
call fcn.00556a96
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 0x543134
push esi
push edi
call fcn.00405410
add esi, 4
add esp, 8
add edi, 4
cmp esi, ebx
jne 0x543120
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 0x5430d3
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 0x54317f
xor eax, eax
jmp 0x543188
mov eax, dword [esp + 0x68]
sub eax, ecx
sar eax, 3
test eax, eax
jge 0x54318e
xor eax, eax
lea ecx, [eax*8]
push ecx
call fcn.00556a96
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 0x5431db
mov dword [esp + 0x40], esi
test esi, esi
mov byte [esp + 0x8b8], 0xf
je 0x5431cd
push edi
mov ecx, esi
call fcn.004568c0
add edi, 8
add esi, 8
cmp edi, ebp
mov dword [esp + 0x44], esi
jne 0x5431b5
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.00539fa0
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