Function at 0x4c7a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52eb48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov al, byte [esp + 0x28]
push ebx
push esi
xor esi, esi
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.00402fc0
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], esi
mov dword [esp + 8], esi
mov eax, dword [ebx + 8]
cmp eax, esi
mov dword [esp + 0xc], eax
jle 0x4c7b30
push ebp
push edi
cmp dword [ebx + 8], esi
jb 0x4c7a75
mov eax, dword [ebx + 4]
test eax, eax
je 0x4c7a75
mov ecx, ebx
call fcn.0045efc0
mov eax, dword [ebx + 4]
add eax, esi
jmp 0x4c7a7a
mov eax, 0x53487c
mov al, byte [eax]
cmp al, 0x22
je 0x4c7c6a
cmp al, 0x26
je 0x4c7bf2
cmp al, 0x3c
je 0x4c7b7a
mov ecx, dword [ebx + 8]
cmp ecx, esi
jb 0x4c7ac9
mov eax, dword [ebx + 4]
test eax, eax
je 0x4c7ac9
mov al, byte [eax - 1]
test al, al
je 0x4c7ab7
cmp al, 0xff
je 0x4c7ab7
push 0
push ecx
mov ecx, ebx
call fcn.004030d0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4c7ac2
mov byte [eax - 1], 0xff
mov eax, dword [ebx + 4]
add eax, esi
jmp 0x4c7ace
mov eax, 0x53487c
mov bl, byte [eax]
mov eax, dword [0x5347a8]
sub eax, dword [esp + 0x20]
cmp eax, 1
ja 0x4c7ae3
call fcn.004b815e
mov ecx, dword [esp + 0x20]
push 0
lea esi, [ecx + 1]
lea ecx, [esp + 0x1c]
push esi
call fcn.004030d0
test al, al
je 0x4c7b15
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
movsx edx, bl
add ecx, eax
mov dh, dl
push esi
mov byte [ecx], dl
lea ecx, [esp + 0x1c]
call fcn.004030b0
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x4c7a5b
pop edi
pop ebp
mov ecx, dword [0x5347a8]
lea edx, [esp + 0x10]
push ecx
push 0
push edx
mov ecx, ebx
call fcn.0040ed00
mov ecx, dword [esp + 0x14]
pop esi
test ecx, ecx
pop ebx
je 0x4c7cec
mov al, byte [ecx - 1]
test al, al
je 0x4c7ce2
cmp al, 0xff
je 0x4c7ce2
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov edi, str.lt_
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x5347a8]
sub ecx, edx
cmp ecx, esi
ja 0x4c7ba0
call fcn.004b815e
test esi, esi
jbe 0x4c7b19
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.004030d0
test al, al
je 0x4c7b19
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, esi
mov esi, str.lt_
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.004030b0
jmp 0x4c7b19
mov edi, str.amp_
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x5347a8]
sub ecx, edx
cmp ecx, esi
ja 0x4c7c18
call fcn.004b815e
test esi, esi
jbe 0x4c7b19
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.004030d0
test al, al
je 0x4c7b19
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, esi
mov esi, str.amp_
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.004030b0
jmp 0x4c7b19
mov edi, str.quot_
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x5347a8]
sub ecx, edx
cmp ecx, esi
ja 0x4c7c90
call fcn.004b815e
test esi, esi
jbe 0x4c7b19
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.004030d0
test al, al
je 0x4c7b19
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, esi
mov esi, str.quot_
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.004030b0
jmp 0x4c7b19
dec ecx
push ecx
call fcn.005096eb
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret