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

Disassembly:
push 0xffffffffffffffff
push 0x4f526b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
push ebx
mov ebx, ecx
push ebp
push esi
mov byte [0x5132e0], 2
mov al, byte [ebx + 0x34]
push edi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x28], ebx
test al, al
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x3c], edi
mov esi, 1
jne 0x4c5d7d
push str.CANPRINT
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x2c], ebp
je 0x4c5d7d
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, byte [ebx + 4]
test al, al
jne 0x4c5d96
mov edi, dword [ebx + 0x14]
mov ecx, 0x19
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x1c], eax
lea ecx, [esp + 0x4c]
call fcn.004c86c0
mov eax, dword [ebx + 0xc]
mov edi, dword [esp + 0x4bc]
cmp eax, esi
mov dword [esp + 0x4b0], esi
je 0x4c6153
mov ecx, dword [ebx + 0x1c]
mov al, byte [esp + 0x4c0]
test al, al
mov byte [ecx], 2
mov edx, dword [ebx + 0x1c]
mov byte [edx + 1], 8
je 0x4c5dd9
mov eax, dword [ebx + 0x1c]
mov byte [eax + 2], 0xff
jmp 0x4c5de0
mov ecx, dword [ebx + 0x1c]
mov byte [ecx + 2], 0
mov ecx, edi
call fcn.004c8080
mov edx, dword [ebx + 0x1c]
push 0xffff
mov ecx, edi
mov byte [edx + 3], al
mov eax, dword [ebx + 0x1c]
add eax, 4
push eax
mov dword [ebx + 0x1c], eax
call fcn.004c80a0
mov cl, byte [ebx + 4]
lea esi, [eax + 4]
test cl, cl
je 0x4c6122
mov ecx, dword [ebx + 0x1c]
lea edx, [esp + 0x3c]
add ecx, eax
push edx
mov dword [ebx + 0x1c], ecx
mov eax, dword [ebx + 0x28]
lea ecx, [ebx + 0x20]
push 1
push eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], 2
call fcn.004c7660
test ebp, ebp
je 0x4c5e51
lea eax, [esp + 0x70]
push eax
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004cd070
test al, al
je 0x4c60bd
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4c60bd
call fcn.004d1e50
test eax, eax
je 0x4c60bd
mov cl, byte [esp + 0x27]
push 0
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
call fcn.00411e90
mov edi, 0x520168
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call fcn.00412290
test al, al
je 0x4c5ecf
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov esi, 0x520168
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 + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x4bc]
mov byte [esp + 0x4b0], 2
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x34], 0
call fcn.004c8080
test ax, ax
jle 0x4c6090
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x4c0]
push edx
call fcn.004c7fd0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4b4], 3
call fcn.004be980
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4b0], 5
call fcn.004beab0
lea ecx, [esp + 0x20]
call fcn.004bee50
lea ecx, [esp + 0x20]
mov ebp, eax
xor esi, esi
call fcn.004bee30
test ax, ax
jle 0x4c5f92
lea edi, [esp + 0xa8]
xor eax, eax
mov al, byte [esi + ebp]
push eax
push str._.2x
push edi
call fcn.004df246
add esp, 0xc
lea ecx, [esp + 0x20]
inc esi
add edi, 3
call fcn.004bee30
movsx ecx, ax
cmp esi, ecx
jl 0x4c5f6a
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 + 0x14]
push ebp
call fcn.00412290
test al, al
je 0x4c5fd8
mov edi, dword [esp + 0x14]
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 + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x4f73d0]
sub ecx, edx
cmp ecx, esi
ja 0x4c6000
call fcn.004deb1b
test esi, esi
jbe 0x4c6047
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [edx + esi]
push ebp
call fcn.00412290
test al, al
je 0x4c6047
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0xac]
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 + 0x14]
call fcn.00412270
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4c6054
mov eax, 0x4f7480
mov ecx, dword [ebx + 0x10]
push 0
push eax
call fcn.004d2840
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b0], 2
call fcn.004beab0
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x4bc]
inc esi
mov dword [esp + 0x34], esi
call fcn.004c8080
movsx eax, ax
cmp esi, eax
jl 0x4c5f0f
mov eax, dword [esp + 0x14]
mov byte [esp + 0x4b0], 1
test eax, eax
je 0x4c60bd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4c60b4
cmp al, 0xff
je 0x4c60b4
dec al
mov byte [ecx], al
jmp 0x4c60bd
push ecx
call fcn.004deb10
add esp, 4
mov esi, dword [esp + 0x4b8]
mov cl, byte [esp + 0x4c]
mov byte [esi], cl
lea ecx, [esp + 0x4c]
call fcn.004c7450
test eax, eax
jge 0x4c60d9
xor eax, eax
shl eax, 4
push eax
call fcn.004df7b5
mov edx, dword [esp + 0x58]
add esp, 4
mov dword [esi + 4], eax
mov ecx, esi
push eax
mov eax, dword [esp + 0x54]
push edx
push eax
call fcn.004c7470
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4b0], 6
push ecx
lea ecx, [esi + 0x10]
call fcn.004bf7c0
mov dword [esp + 0x44], 1
jmp 0x4c6280
call fcn.004cd070
test al, al
je 0x4c6135
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x48], eax
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx]
push esi
push edx
call fcn.004d7870
mov al, byte [esp + 0x4c0]
test al, al
je 0x4c6153
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.004d7aa0
mov esi, eax
call fcn.004cd070
test al, al
je 0x4c6184
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x3c], eax
test esi, esi
jne 0x4c61f3
test ebp, ebp
je 0x4c61a1
lea ecx, [esp + 0x70]
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 + 0x4b8]
mov dl, byte [esp + 0x4c]
lea ecx, [esp + 0x4c]
mov byte [esi], dl
call fcn.004c7450
test eax, eax
jge 0x4c61bd
xor eax, eax
shl eax, 4
push eax
call fcn.004df7b5
mov ecx, dword [esp + 0x54]
add esp, 4
mov dword [esi + 4], eax
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
mov ecx, esi
call fcn.004c7470
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea edx, [esp + 0x5c]
mov byte [esp + 0x4b0], 7
push edx
jmp 0x4c6270
mov esi, dword [ebx + 0x18]
add esi, 8
movzx ax, byte [esi]
inc esi
test ax, ax
jne 0x4c6298
test ebp, ebp
je 0x4c6220
lea eax, [esp + 0x70]
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 + 0x4b8]
mov cl, byte [esp + 0x4c]
mov byte [esi], cl
lea ecx, [esp + 0x4c]
call fcn.004c7450
test eax, eax
jge 0x4c623c
xor eax, eax
shl eax, 4
push eax
call fcn.004df7b5
mov edx, dword [esp + 0x58]
add esp, 4
mov dword [esi + 4], eax
mov ecx, esi
push eax
mov eax, dword [esp + 0x54]
push edx
push eax
call fcn.004c7470
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4b0], 8
push ecx
lea ecx, [esi + 0x10]
call fcn.004bf7c0
mov dword [esp + 0x44], 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4b0], 0
call fcn.004c87c0
mov eax, esi
jmp 0x4c6a41
movsx eax, ax
test eax, eax
jle 0x4c63a4
mov dword [esp + 0x20], eax
movzx di, byte [esi]
lea ecx, [esp + 0x34]
inc esi
call fcn.004be970
mov dl, byte [esp + 0x27]
xor ebp, ebp
mov byte [esp + 0x10], dl
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
movsx ebx, di
test ebx, ebx
mov byte [esp + 0x4b0], 0xa
jle 0x4c6347
movzx di, byte [esi]
inc esi
cmp di, 0xff
jne 0x4c62f7
movzx di, byte [esi]
movzx ax, byte [esi + 1]
shl edi, 8
add edi, eax
add esi, 2
test di, di
je 0x4c6326
push edi
push esi
lea ecx, [esp + 0x3c]
call fcn.004bef10
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
push 1
push edx
lea ecx, [esp + 0x1c]
call fcn.004126e0
movsx eax, di
add esi, eax
inc ebp
cmp ebp, ebx
jl 0x4c62da
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c6347
mov ecx, dword [esp + 0x18]
sub ecx, eax
sar ecx, 2
je 0x4c6347
lea edx, [esp + 0x10]
lea ecx, [esp + 0x4c]
push edx
call fcn.004c8a30
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp edi, ebx
mov byte [esp + 0x4b0], 9
je 0x4c6369
mov ecx, edi
call fcn.004beab0
add edi, 4
cmp edi, ebx
jne 0x4c635b
mov eax, dword [esp + 0x14]
push eax
call fcn.004deb10
xor eax, eax
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x4b0], 1
call fcn.004beab0
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x4c62a7
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4c63c1
lea ecx, [esp + 0x70]
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 + 0x4bc]
lea edx, [esp + 0x4c]
push edx
push eax
call fcn.004bb900
add esp, 8
call fcn.004cd070
test al, al
je 0x4c68aa
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x4c68aa
call fcn.004d1e50
test eax, eax
je 0x4c68aa
mov edi, 0x520168
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x27]
mov dword [esp + 0x14], ebx
not ecx
dec ecx
mov byte [esp + 0x10], dl
push ecx
push 0x520168
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004120b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b0], 0xb
call fcn.004be970
mov ecx, dword [esp + 0x4bc]
mov byte [esp + 0x4b0], 0xc
mov byte [esp + 0xa8], bl
call fcn.004c8080
test ax, ax
jle 0x4c661c
mov ecx, dword [esp + 0x4bc]
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.004c7fd0
push ecx
mov byte [esp + 0x4b4], 0xd
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004be980
lea ecx, [esp + 0x24]
call fcn.004beca0
lea ecx, [esp + 0x34]
mov byte [esp + 0x4b0], 0xc
call fcn.004beab0
lea ecx, [esp + 0x20]
call fcn.004bee50
lea ecx, [esp + 0x20]
mov ebp, eax
xor esi, esi
call fcn.004bee30
test ax, ax
jle 0x4c64f3
lea edi, [esp + 0xa8]
xor ecx, ecx
mov cl, byte [esi + ebp]
push ecx
push str._.2X
push edi
call fcn.004df246
add esp, 0xc
lea ecx, [esp + 0x20]
inc esi
add edi, 3
call fcn.004bee30
movsx edx, ax
cmp esi, edx
jl 0x4c64cb
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x74]
push eax
push str._ld_Req:
push ecx
call fcn.004df246
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [0x4f73d0]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
cmp edx, esi
ja 0x4c6532
call fcn.004deb1b
test esi, esi
jbe 0x4c6578
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [eax + esi]
push ebp
call fcn.00412290
test al, al
je 0x4c6578
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
lea esi, [esp + 0x74]
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 + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x4f73d0]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4c659f
call fcn.004deb1b
test esi, esi
jbe 0x4c65e8
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [edx + esi]
push ebp
call fcn.00412290
test al, al
je 0x4c65e8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0xa8]
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 + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4c65f5
mov eax, 0x4f7480
mov ecx, dword [esp + 0x28]
push 0
push eax
mov ecx, dword [ecx + 0x10]
call fcn.004d2840
mov ecx, dword [esp + 0x4bc]
inc ebx
call fcn.004c8080
movsx edx, ax
cmp ebx, edx
jl 0x4c6468
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xa8]
push 1
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x520168
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call fcn.00412290
test al, al
je 0x4c667f
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, ecx
mov esi, 0x520168
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 + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], 0
call fcn.004c8ca0
test ax, ax
jle 0x4c686c
xor ebx, ebx
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
push esi
call fcn.004c8be0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4c6853
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x4c6853
push ebx
push esi
lea ecx, [esp + 0x54]
call fcn.004c8be0
mov ecx, eax
call fcn.00411b50
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.004be980
lea ecx, [esp + 0x24]
call fcn.004beca0
lea ecx, [esp + 0x20]
call fcn.004bee50
lea ecx, [esp + 0x20]
mov ebp, eax
xor esi, esi
call fcn.004bee30
test ax, ax
jle 0x4c6736
lea edi, [esp + 0xa8]
xor eax, eax
mov al, byte [esi + ebp]
push eax
push str._.2X
push edi
call fcn.004df246
add esp, 0xc
lea ecx, [esp + 0x20]
inc esi
add edi, 3
call fcn.004bee30
movsx ecx, ax
cmp esi, ecx
jl 0x4c670e
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x48]
sub edx, edi
lea eax, [esp + 0x74]
push edx
push str._ld_Ans:
push eax
call fcn.004df246
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x18]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x4f73d0]
sub ecx, edx
cmp ecx, esi
ja 0x4c677b
call fcn.004deb1b
test esi, esi
jbe 0x4c67c1
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [edx + esi]
push ebp
call fcn.00412290
test al, al
je 0x4c67c1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, esi
lea esi, [esp + 0x74]
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 + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x4f73d0]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4c67e8
call fcn.004deb1b
test esi, esi
jbe 0x4c6831
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [edx + esi]
push ebp
call fcn.00412290
test al, al
je 0x4c6831
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, esi
lea esi, [esp + 0xa8]
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 + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4c683e
mov eax, 0x4f7480
mov edx, dword [esp + 0x28]
push 0
push eax
mov ecx, dword [edx + 0x10]
call fcn.004d2840
inc ebx
jmp 0x4c669b
inc esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], esi
call fcn.004c8ca0
movsx eax, ax
cmp esi, eax
jl 0x4c6699
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b0], 0xb
call fcn.004beab0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x4b0], 1
test eax, eax
je 0x4c68aa
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4c68a1
cmp al, 0xff
je 0x4c68a1
dec al
mov byte [ecx], al
jmp 0x4c68aa
push ecx
call fcn.004deb10
add esp, 4
mov edx, dword [esp + 0x4b8]
mov cl, byte [esp + 0x4c]
mov byte [edx], cl
mov ecx, dword [esp + 0x50]
test ecx, ecx
jne 0x4c68c3
xor eax, eax
jmp 0x4c68cc
mov eax, dword [esp + 0x54]
sub eax, ecx
sar eax, 4
test eax, eax
jge 0x4c68d2
xor eax, eax
shl eax, 4
push eax
call fcn.004df7b5
mov edi, dword [esp + 0x4bc]
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
add esp, 4
mov ebx, eax
cmp ebp, ecx
mov dword [edi + 4], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
je 0x4c6994
add ebp, 4
mov dword [esp + 0x48], ebx
test ebx, ebx
mov byte [esp + 0x4b0], 0xe
je 0x4c697b
mov al, byte [ebp - 4]
mov byte [ebx], al
mov ecx, dword [ebp]
test ecx, ecx
jne 0x4c6925
xor eax, eax
jmp 0x4c692d
mov eax, dword [ebp + 4]
sub eax, ecx
sar eax, 2
test eax, eax
jge 0x4c6933
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.004df7b5
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 4]
mov esi, dword [ebp]
add esp, 4
cmp esi, ecx
mov dword [esp + 0x3c], ecx
mov edi, eax
je 0x4c696e
push esi
push edi
call fcn.00413330
mov eax, dword [esp + 0x44]
add esi, 4
add esp, 8
add edi, 4
cmp esi, eax
jne 0x4c6956
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov edi, dword [esp + 0x4b8]
mov eax, dword [esp + 0x28]
add ebp, 0x10
add ebx, 0x10
lea edx, [ebp - 4]
mov dword [esp + 0x2c], ebx
cmp edx, eax
jne 0x4c6905
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov ecx, dword [esp + 0x60]
mov al, byte [esp + 0x5c]
test ecx, ecx
mov byte [esp + 0x4b0], 0xf
mov byte [edi + 0x10], al
jne 0x4c69b5
xor eax, eax
jmp 0x4c69be
mov eax, dword [esp + 0x64]
sub eax, ecx
sar eax, 3
test eax, eax
jge 0x4c69c4
xor eax, eax
lea ecx, [eax*8]
push ecx
call fcn.004df7b5
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
add esp, 4
mov esi, eax
cmp ebx, ecx
mov dword [edi + 0x14], eax
mov ebp, ecx
mov dword [esp + 0x3c], esi
je 0x4c6a19
mov dword [esp + 0x2c], esi
test esi, esi
mov byte [esp + 0x4b0], 0x10
je 0x4c6a0b
push ebx
mov ecx, esi
call fcn.004be980
mov dx, word [ebx + 4]
mov word [esi + 4], dx
add ebx, 8
add esi, 8
cmp ebx, ebp
mov dword [esp + 0x3c], esi
jne 0x4c69eb
mov al, byte [esp + 0x6c]
lea ecx, [esp + 0x4c]
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov byte [edi + 0x20], al
mov dword [esp + 0x44], 1
mov byte [esp + 0x4b0], 0
call fcn.004c87c0
mov eax, edi
mov ecx, dword [esp + 0x4a8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4a4
ret 0xc