Function at 0x4c4c60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xac
push esi
push edi
push 0x18
mov dword [esp + 0x90], ecx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [esp + 0xc0]
add esp, 4
test eax, eax
je 0x4c4c9e
mov ecx, dword [esp + 0xb8]
push edi
push ecx
push 0
mov ecx, eax
call fcn.004c2900
mov esi, eax
mov dword [esp + 0x50], eax
jmp 0x4c4ca4
xor esi, esi
mov dword [esp + 0x50], esi
mov edx, dword [esi + 0x10]
imul edx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
push edx
push 0
push eax
call sub.MSVCR90.dll_memset
xor ecx, ecx
add esp, 0xc
cmp dword [esp + 0xc0], ecx
mov dword [esp + 0xc], 0
sete cl
lea ecx, [ecx*8 + 8]
mov dword [esp + 0xb0], ecx
test edi, edi
jle 0x4c5be5
mov eax, dword [esp + 0xcc]
mov esi, dword [esp + 0xc8]
mov ecx, eax
neg ecx
mov dword [esp + 0xac], ecx
or ecx, 0xffffffff
push ebx
sub ecx, eax
push ebp
mov dword [esp + 0x90], ecx
jmp 0x4c4d10
xor ebp, ebp
cmp dword [esp + 0xc8], ebp
je 0x4c538b
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x58]
lea eax, [edi - 1]
cmp eax, ebp
jl 0x4c4d4f
cmp eax, dword [ebx + 0xc]
jge 0x4c4d4f
cmp dword [ebx + 8], ebp
jle 0x4c4d4f
mov edx, dword [ebx + 0x10]
imul edx, eax
add edx, dword [ebx + 0x14]
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], edx
jmp 0x4c4d57
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
mov dword [esp + 0x24], ebp
call fcn.004c2b10
cmp edi, ebp
mov dword [esp + 0x8c], eax
jl 0x4c4d9a
cmp edi, dword [ebx + 0xc]
jge 0x4c4d9a
or ecx, 0xffffffff
cmp dword [ebx + 8], ecx
jle 0x4c4d9a
mov eax, dword [ebx + 0x10]
imul eax, edi
add eax, dword [ebx + 0x14]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
jmp 0x4c4da6
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
sub edi, dword [esp + 0xd8]
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x74]
push ecx
lea ebp, [edi - 1]
push ebp
push edx
mov ecx, esi
call fcn.004c2a90
mov ebx, dword [esp + 0x90]
lea eax, [esp + 0x60]
push eax
push edi
push ebx
mov ecx, esi
call fcn.004c2a90
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.004c2b10
lea edx, [esp + 0x60]
push edx
mov ecx, esi
mov dword [esp + 0x74], eax
call fcn.004c2b10
mov ecx, dword [esp + 0x70]
lea edx, [ecx + ecx]
or eax, edx
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x80]
push ecx
mov dword [esp + 0x74], eax
lea eax, [edi + 1]
push eax
push edx
mov ecx, esi
mov dword [esp + 0xa4], eax
call fcn.004c2a90
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call fcn.004c2b10
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0xcc], eax
je 0x4c4f32
lea ecx, [esp + 0x3c]
push ecx
push ebp
push ebx
mov ecx, esi
call fcn.004c2a90
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.004c2b10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.004c2b10
mov ecx, dword [esp + 0x10]
mov ebp, eax
lea edx, [ecx + ecx]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
or ebp, edx
call fcn.004c2b10
lea edx, [esp + 0x30]
push edx
lea ecx, [ebp + ebp]
or eax, ecx
push edi
push ebx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.004c2a90
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004c2b10
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov ebp, eax
call fcn.004c2b10
mov edi, eax
lea eax, [esp + 0x30]
lea edx, [ebp + ebp]
push eax
mov ecx, esi
or edi, edx
call fcn.004c2b10
lea ecx, [edi + edi]
or eax, ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x98]
push edx
push eax
push ebx
mov ecx, esi
call fcn.004c2a90
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004c2b10
lea edx, [esp + 0x24]
push edx
mov ecx, esi
mov ebx, eax
call fcn.004c2b10
mov edi, eax
lea ecx, [esp + 0x24]
lea eax, [ebx + ebx]
push ecx
mov ecx, esi
or edi, eax
call fcn.004c2b10
lea edx, [edi + edi]
or eax, edx
mov dword [esp + 0x5c], eax
xor ebp, ebp
jmp 0x4c4f58
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], ebp
cmp dword [esp + 0xc0], ebp
jle 0x4c5bbe
mov edi, dword [esp + 0x58]
mov ebx, 7
mov edi, edi
cmp dword [esp + 0x18], 0
mov edx, dword [esp + 0x20]
jne 0x4c4f7f
xor eax, eax
jmp 0x4c4fc5
test edx, edx
jge 0x4c4f8c
inc edx
mov dword [esp + 0x20], edx
xor eax, eax
jmp 0x4c4fc5
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
mov cl, byte [esp + 0x1c]
shr eax, cl
inc edx
mov dword [esp + 0x20], edx
and eax, 1
cmp edx, dword [edi + 8]
jne 0x4c4fb0
mov dword [esp + 0x18], 0
jmp 0x4c4fc5
cmp dword [esp + 0x1c], 0
jne 0x4c4fc1
inc dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
jmp 0x4c4fc5
dec dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c]
lea edx, [ecx + ecx]
or edx, eax
and edx, ebx
cmp dword [esp + 0x60], 0
mov dword [esp + 0x8c], edx
jne 0x4c4fe5
xor eax, eax
jmp 0x4c502f
mov edx, dword [esp + 0x68]
test edx, edx
jge 0x4c4ff6
inc edx
mov dword [esp + 0x68], edx
xor eax, eax
jmp 0x4c502f
mov eax, dword [esp + 0x60]
movzx eax, byte [eax]
mov cl, byte [esp + 0x64]
shr eax, cl
inc edx
mov dword [esp + 0x68], edx
and eax, 1
cmp edx, dword [esi + 8]
jne 0x4c501a
mov dword [esp + 0x60], 0
jmp 0x4c502f
cmp dword [esp + 0x64], 0
jne 0x4c502b
inc dword [esp + 0x60]
mov dword [esp + 0x64], ebx
jmp 0x4c502f
dec dword [esp + 0x64]
mov ecx, dword [esp + 0x70]
lea edx, [ecx + ecx]
or edx, eax
and edx, ebx
cmp dword [esp + 0x80], 0
mov dword [esp + 0x70], edx
jne 0x4c504c
xor eax, eax
jmp 0x4c50b4
mov edx, dword [esp + 0x88]
test edx, edx
jge 0x4c5063
inc edx
mov dword [esp + 0x88], edx
xor eax, eax
jmp 0x4c50b4
mov eax, dword [esp + 0x80]
movzx eax, byte [eax]
mov cl, byte [esp + 0x84]
shr eax, cl
inc edx
mov dword [esp + 0x88], edx
and eax, 1
cmp edx, dword [esi + 8]
jne 0x4c5093
mov dword [esp + 0x80], 0
jmp 0x4c50b4
cmp dword [esp + 0x84], 0
jne 0x4c50ad
inc dword [esp + 0x80]
mov dword [esp + 0x84], ebx
jmp 0x4c50b4
dec dword [esp + 0x84]
mov ecx, dword [esp + 0x6c]
lea edx, [ecx + ecx]
or edx, eax
and edx, 3
cmp dword [esp + 0xcc], 0
mov dword [esp + 0x6c], edx
je 0x4c5268
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c5125
mov edx, dword [esp + 0x44]
test edx, edx
jge 0x4c50eb
inc edx
mov dword [esp + 0x44], edx
xor eax, eax
jmp 0x4c5125
movzx eax, byte [eax]
mov cl, byte [esp + 0x40]
shr eax, cl
mov ecx, 1
add edx, ecx
mov dword [esp + 0x44], edx
and eax, ecx
cmp edx, dword [esi + 8]
jne 0x4c5110
mov dword [esp + 0x3c], 0
jmp 0x4c5125
cmp dword [esp + 0x40], 0
jne 0x4c5121
add dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
jmp 0x4c5125
sub dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
or edx, eax
and edx, ebx
cmp dword [esp + 0x30], 0
mov dword [esp + 0x10], edx
jne 0x4c513f
xor eax, eax
jmp 0x4c5189
mov edx, dword [esp + 0x38]
test edx, edx
jge 0x4c5150
inc edx
mov dword [esp + 0x38], edx
xor eax, eax
jmp 0x4c5189
mov eax, dword [esp + 0x30]
movzx eax, byte [eax]
mov cl, byte [esp + 0x34]
shr eax, cl
inc edx
mov dword [esp + 0x38], edx
and eax, 1
cmp edx, dword [esi + 8]
jne 0x4c5174
mov dword [esp + 0x30], 0
jmp 0x4c5189
cmp dword [esp + 0x34], 0
jne 0x4c5185
inc dword [esp + 0x30]
mov dword [esp + 0x34], ebx
jmp 0x4c5189
dec dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
lea edx, [ecx + ecx]
or edx, eax
and edx, ebx
cmp dword [esp + 0x24], 0
mov dword [esp + 0x54], edx
jne 0x4c51a3
xor eax, eax
jmp 0x4c51ed
mov edx, dword [esp + 0x2c]
test edx, edx
jge 0x4c51b4
inc edx
mov dword [esp + 0x2c], edx
xor eax, eax
jmp 0x4c51ed
mov eax, dword [esp + 0x24]
movzx eax, byte [eax]
mov cl, byte [esp + 0x28]
shr eax, cl
inc edx
mov dword [esp + 0x2c], edx
and eax, 1
cmp edx, dword [esi + 8]
jne 0x4c51d8
mov dword [esp + 0x24], 0
jmp 0x4c51ed
cmp dword [esp + 0x28], 0
jne 0x4c51e9
inc dword [esp + 0x24]
mov dword [esp + 0x28], ebx
jmp 0x4c51ed
dec dword [esp + 0x28]
mov ecx, dword [esp + 0x5c]
lea edx, [ecx + ecx]
or edx, eax
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x50]
and edx, ebx
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0xb8]
push ecx
mov ecx, dword [eax + 0x48]
push edx
call fcn.00501a20
cmp dword [esp + 0x10], 0
jne 0x4c5252
cmp dword [esp + 0x54], 0
jne 0x4c5268
cmp dword [esp + 0x5c], 0
jne 0x4c5268
mov eax, dword [edi + 0x10]
imul eax, dword [esp + 0x14]
mov edx, dword [edi + 0x14]
mov ecx, ebp
sar ecx, 3
add eax, ecx
add eax, edx
mov ecx, ebp
and ecx, ebx
mov edx, 0x7f7f
sar edx, cl
and byte [eax], dl
jmp 0x4c5378
cmp dword [esp + 0x10], ebx
jne 0x4c5268
cmp dword [esp + 0x54], ebx
jne 0x4c5268
cmp dword [esp + 0x5c], ebx
je 0x4c5356
cmp dword [esp + 0x48], 0
jne 0x4c5273
xor edx, edx
jmp 0x4c52bf
cmp dword [esp + 0x50], 0
jge 0x4c5282
inc dword [esp + 0x50]
xor edx, edx
jmp 0x4c52bf
mov eax, dword [esp + 0x48]
movzx edx, byte [eax]
mov eax, dword [esp + 0x4c]
mov cl, al
shr edx, cl
mov ecx, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x50], ecx
and edx, 1
cmp ecx, dword [edi + 8]
jne 0x4c52ac
mov dword [esp + 0x48], 0
jmp 0x4c52bf
test eax, eax
jne 0x4c52ba
inc dword [esp + 0x48]
mov dword [esp + 0x4c], ebx
jmp 0x4c52bf
dec eax
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x74], 0
jne 0x4c52ca
xor eax, eax
jmp 0x4c5316
cmp dword [esp + 0x7c], 0
jge 0x4c52d9
inc dword [esp + 0x7c]
xor eax, eax
jmp 0x4c5316
mov ecx, dword [esp + 0x74]
movzx eax, byte [ecx]
mov cl, byte [esp + 0x78]
shr eax, cl
mov ecx, dword [esp + 0x7c]
inc ecx
mov dword [esp + 0x7c], ecx
and eax, 1
cmp ecx, dword [esi + 8]
jne 0x4c5301
mov dword [esp + 0x74], 0
jmp 0x4c5316
cmp dword [esp + 0x78], 0
jne 0x4c5312
inc dword [esp + 0x74]
mov dword [esp + 0x78], ebx
jmp 0x4c5316
dec dword [esp + 0x78]
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx + 0x50]
push ecx
mov ecx, dword [esp + 0x90]
add ecx, ecx
or ecx, edx
mov edx, dword [esp + 0x98]
add ecx, ecx
or ecx, eax
add ecx, ecx
add ecx, ecx
add ecx, ecx
or ecx, dword [esp + 0x74]
add ecx, ecx
add ecx, ecx
or ecx, dword [esp + 0x70]
push ecx
mov ecx, dword [edx + 0x48]
call fcn.00501a20
test eax, eax
je 0x4c5378
mov eax, dword [edi + 0x10]
imul eax, dword [esp + 0x14]
mov edx, dword [edi + 0x14]
mov ecx, ebp
sar ecx, 3
add eax, ecx
add eax, edx
mov edx, ebp
and edx, ebx
mov ecx, ebx
sub ecx, edx
mov dl, 1
shl dl, cl
or byte [eax], dl
inc ebp
cmp ebp, dword [esp + 0xc0]
jl 0x4c4f70
jmp 0x4c5bbe
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x58]
lea eax, [ebx - 1]
cmp eax, ebp
jl 0x4c53bb
cmp eax, dword [edi + 0xc]
jge 0x4c53bb
cmp dword [edi + 8], ebp
jle 0x4c53bb
mov ecx, dword [edi + 0x10]
imul ecx, eax
add ecx, dword [edi + 0x14]
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], ecx
jmp 0x4c53c3
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov dword [esp + 0x24], ebp
call fcn.004c2b10
cmp ebx, ebp
mov dword [esp + 0x8c], eax
jl 0x4c5406
cmp ebx, dword [edi + 0xc]
jge 0x4c5406
or ecx, 0xffffffff
cmp dword [edi + 8], ecx
jle 0x4c5406
mov eax, dword [edi + 0x10]
imul eax, ebx
add eax, dword [edi + 0x14]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
jmp 0x4c5412
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov edi, dword [esp + 0x14]
sub edi, dword [esp + 0xd8]
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0x74]
push eax
lea ebp, [edi - 1]
push ebp
push ecx
mov ecx, esi
call fcn.004c2a90
lea edx, [esp + 0x74]
push edx
mov ecx, esi
call fcn.004c2b10
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x60]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004c2a90
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.004c2b10
mov ebx, eax
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.004c2b10
lea ecx, [ebx + ebx]
or eax, ecx
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x94]
lea ebx, [edi + 1]
push ebx
push eax
mov ecx, esi
call fcn.004c2a90
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call fcn.004c2b10
lea edx, [esp + 0x80]
push edx
mov ecx, esi
mov dword [esp + 0x70], eax
call fcn.004c2b10
mov ecx, dword [esp + 0x6c]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0xe0]
or eax, edx
mov edx, dword [ecx]
add edx, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xa8]
push eax
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax]
push edx
push ecx
mov ecx, dword [esp + 0x64]
call fcn.004c2a90
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax + 4]
sub ecx, dword [esp + 0xd8]
lea edx, [esp + 0x9c]
add ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0xe0]
mov eax, dword [edx + 4]
sub eax, dword [esp + 0xd8]
push ecx
push eax
mov ecx, esi
call fcn.004c2a90
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0xcc], eax
je 0x4c5632
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x3c]
push ecx
push ebp
push edx
mov ecx, esi
call fcn.004c2a90
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.004c2b10
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.004c2b10
mov edx, dword [esp + 0x10]
mov ebp, eax
lea ecx, [esp + 0x3c]
lea eax, [edx + edx]
push ecx
mov ecx, esi
or ebp, eax
call fcn.004c2b10
mov ecx, dword [esp + 0x90]
lea edx, [ebp + ebp]
or eax, edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004c2a90
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.004c2b10
mov ebp, eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004c2b10
mov edi, eax
lea ecx, [ebp + ebp]
lea edx, [esp + 0x30]
or edi, ecx
push edx
mov ecx, esi
call fcn.004c2b10
lea ecx, [edi + edi]
or eax, ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x94]
push ebx
push eax
mov ecx, esi
call fcn.004c2a90
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004c2b10
lea edx, [esp + 0x24]
push edx
mov ecx, esi
mov ebx, eax
call fcn.004c2b10
mov edi, eax
lea ecx, [esp + 0x24]
lea eax, [ebx + ebx]
push ecx
mov ecx, esi
or edi, eax
call fcn.004c2b10
lea edx, [edi + edi]
or eax, edx
mov dword [esp + 0x5c], eax
xor ebx, ebx
jmp 0x4c5658
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
cmp dword [esp + 0xc0], ebx
jle 0x4c5bbe
mov ebp, dword [esp + 0x58]
lea esp, [esp]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
test edx, edx
jne 0x4c5680
xor eax, eax
jmp 0x4c56c7
test edi, edi
jge 0x4c568d
inc edi
mov dword [esp + 0x20], edi
xor eax, eax
jmp 0x4c56c7
movzx eax, byte [edx]
mov cl, byte [esp + 0x1c]
shr eax, cl
inc edi
mov dword [esp + 0x20], edi
and eax, 1
cmp edi, dword [ebp + 8]
jne 0x4c56ad
mov dword [esp + 0x18], 0
jmp 0x4c56c7
cmp dword [esp + 0x1c], 0
jne 0x4c56c3
inc edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 7
jmp 0x4c56c7
dec dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c]
lea edx, [ecx + ecx]
or edx, eax
and edx, 3
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x74]
test edx, edx
jne 0x4c56e9
xor eax, eax
jmp 0x4c5734
mov edi, dword [esp + 0x7c]
test edi, edi
jge 0x4c56fa
inc edi
mov dword [esp + 0x7c], edi
xor eax, eax
jmp 0x4c5734
movzx eax, byte [edx]
mov cl, byte [esp + 0x78]
shr eax, cl
inc edi
mov dword [esp + 0x7c], edi
and eax, 1
cmp edi, dword [esi + 8]
jne 0x4c571a
mov dword [esp + 0x74], 0
jmp 0x4c5734
cmp dword [esp + 0x78], 0
jne 0x4c5730
inc edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 7
jmp 0x4c5734
dec dword [esp + 0x78]
mov ecx, dword [esp + 0x98]
lea edx, [ecx + ecx]
or edx, eax
and edx, 3
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x60]
test edx, edx
jne 0x4c5756
xor eax, eax
jmp 0x4c57a1
mov edi, dword [esp + 0x68]
test edi, edi
jge 0x4c5767
inc edi
mov dword [esp + 0x68], edi
xor eax, eax
jmp 0x4c57a1
movzx eax, byte [edx]
mov cl, byte [esp + 0x64]
shr eax, cl
inc edi
mov dword [esp + 0x68], edi
and eax, 1
cmp edi, dword [esi + 8]
jne 0x4c5787
mov dword [esp + 0x60], 0
jmp 0x4c57a1
cmp dword [esp + 0x64], 0
jne 0x4c579d
inc edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 7
jmp 0x4c57a1
dec dword [esp + 0x64]
mov ecx, dword [esp + 0x70]
lea edx, [ecx + ecx]
or edx, eax
and edx, 7
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x80]
test edx, edx
jne 0x4c57c0
xor eax, eax
jmp 0x4c5826
mov edi, dword [esp + 0x88]
test edi, edi
jge 0x4c57d7
inc edi
mov dword [esp + 0x88], edi
xor eax, eax
jmp 0x4c5826
movzx eax, byte [edx]
mov cl, byte [esp + 0x84]
shr eax, cl
inc edi
mov dword [esp + 0x88], edi
and eax, 1
cmp edi, dword [esi + 8]
jne 0x4c5800
mov dword [esp + 0x80], 0
jmp 0x4c5826
cmp dword [esp + 0x84], 0
jne 0x4c581f
inc edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], 7
jmp 0x4c5826
dec dword [esp + 0x84]
mov ecx, dword [esp + 0x6c]
lea edx, [ecx + ecx]
or edx, eax
and edx, 7
cmp dword [esp + 0xcc], 0
mov dword [esp + 0x6c], edx
je 0x4c59e3
xor edi, edi
cmp dword [esp + 0x3c], edi
jne 0x4c5850
xor eax, eax
jmp 0x4c589b
cmp dword [esp + 0x44], edi
jge 0x4c585e
inc dword [esp + 0x44]
xor eax, eax
jmp 0x4c589b
mov eax, dword [esp + 0x3c]
movzx eax, byte [eax]
mov edx, dword [esp + 0x40]
mov cl, dl
shr eax, cl
mov ecx, dword [esp + 0x44]
inc ecx
mov dword [esp + 0x44], ecx
and eax, 1
cmp ecx, dword [esi + 8]
jne 0x4c5884
mov dword [esp + 0x3c], edi
jmp 0x4c589b
cmp edx, edi
jne 0x4c5896
inc dword [esp + 0x3c]
mov dword [esp + 0x40], 7
jmp 0x4c589b
dec edx
mov dword [esp + 0x40], edx
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
or edx, eax
and edx, 7
mov dword [esp + 0x10], edx
cmp dword [esp + 0x30], edi
jne 0x4c58b5
xor eax, eax
jmp 0x4c5900
cmp dword [esp + 0x38], edi
jge 0x4c58c3
inc dword [esp + 0x38]
xor eax, eax
jmp 0x4c5900
mov eax, dword [esp + 0x30]
movzx eax, byte [eax]
mov edx, dword [esp + 0x34]
mov cl, dl
shr eax, cl
mov ecx, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x38], ecx
and eax, 1
cmp ecx, dword [esi + 8]
jne 0x4c58e9
mov dword [esp + 0x30], edi
jmp 0x4c5900
cmp edx, edi
jne 0x4c58fb
inc dword [esp + 0x30]
mov dword [esp + 0x34], 7
jmp 0x4c5900
dec edx
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x54]
lea edx, [ecx + ecx]
or edx, eax
and edx, 7
mov dword [esp + 0x54], edx
cmp dword [esp + 0x24], edi
jne 0x4c591a
xor eax, eax
jmp 0x4c5965
cmp dword [esp + 0x2c], edi
jge 0x4c5928
inc dword [esp + 0x2c]
xor eax, eax
jmp 0x4c5965
mov eax, dword [esp + 0x24]
movzx eax, byte [eax]
mov edx, dword [esp + 0x28]
mov cl, dl
shr eax, cl
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], ecx
and eax, 1
cmp ecx, dword [esi + 8]
jne 0x4c594e
mov dword [esp + 0x24], edi
jmp 0x4c5965
cmp edx, edi
jne 0x4c5960
inc dword [esp + 0x24]
mov dword [esp + 0x28], 7
jmp 0x4c5965
dec edx
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x5c]
lea edi, [ecx + ecx]
mov ecx, dword [esp + 0xb8]
or edi, eax
mov eax, dword [esp + 0x94]
mov edx, dword [eax + 0x50]
push edx
push ecx
mov ecx, dword [eax + 0x48]
and edi, 7
mov dword [esp + 0x64], edi
call fcn.00501a20
cmp dword [esp + 0x10], 0
jne 0x4c59ca
cmp dword [esp + 0x54], 0
jne 0x4c59e3
test edi, edi
jne 0x4c59e3
mov edx, dword [ebp + 0x10]
imul edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x14]
mov eax, ebx
sar eax, 3
add edx, eax
lea eax, [edx + ecx]
mov ecx, ebx
and ecx, 7
mov edx, 0x7f7f
sar edx, cl
and byte [eax], dl
jmp 0x4c5bb0
mov eax, 7
cmp dword [esp + 0x10], eax
jne 0x4c59e3
cmp dword [esp + 0x54], eax
jne 0x4c59e3
cmp edi, eax
je 0x4c5b8a
cmp dword [esp + 0x48], 0
jne 0x4c59ee
xor edi, edi
jmp 0x4c5a3e
cmp dword [esp + 0x50], 0
jge 0x4c59fd
inc dword [esp + 0x50]
xor edi, edi
jmp 0x4c5a3e
mov eax, dword [esp + 0x48]
movzx edi, byte [eax]
mov eax, dword [esp + 0x4c]
mov cl, al
shr edi, cl
mov ecx, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x50], ecx
and edi, 1
cmp ecx, dword [ebp + 8]
jne 0x4c5a27
mov dword [esp + 0x48], 0
jmp 0x4c5a3e
test eax, eax
jne 0x4c5a39
inc dword [esp + 0x48]
mov dword [esp + 0x4c], 7
jmp 0x4c5a3e
dec eax
mov dword [esp + 0x4c], eax
cmp dword [esp + 0xa8], 0
jne 0x4c5a4c
xor edx, edx
jmp 0x4c5aba
cmp dword [esp + 0xb0], 0
jge 0x4c5a61
inc dword [esp + 0xb0]
xor edx, edx
jmp 0x4c5aba
mov ecx, dword [esp + 0xa8]
movzx edx, byte [ecx]
mov eax, dword [esp + 0xac]
mov cl, al
shr edx, cl
mov ecx, dword [esp + 0xb0]
inc ecx
mov dword [esp + 0xb0], ecx
and edx, 1
cmp ecx, dword [ebp + 8]
jne 0x4c5a9a
mov dword [esp + 0xa8], 0
jmp 0x4c5aba
test eax, eax
jne 0x4c5ab2
inc dword [esp + 0xa8]
mov dword [esp + 0xac], 7
jmp 0x4c5aba
dec eax
mov dword [esp + 0xac], eax
cmp dword [esp + 0x9c], 0
jne 0x4c5ac8
xor eax, eax
jmp 0x4c5b39
cmp dword [esp + 0xa4], 0
jge 0x4c5add
inc dword [esp + 0xa4]
xor eax, eax
jmp 0x4c5b39
mov eax, dword [esp + 0x9c]
movzx eax, byte [eax]
mov cl, byte [esp + 0xa0]
shr eax, cl
mov ecx, dword [esp + 0xa4]
inc ecx
mov dword [esp + 0xa4], ecx
and eax, 1
cmp ecx, dword [esi + 8]
jne 0x4c5b14
mov dword [esp + 0x9c], 0
jmp 0x4c5b39
cmp dword [esp + 0xa0], 0
jne 0x4c5b32
inc dword [esp + 0x9c]
mov dword [esp + 0xa0], 7
jmp 0x4c5b39
dec dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx + 0x50]
push ecx
mov ecx, dword [esp + 0x90]
add ecx, ecx
or ecx, edi
add ecx, ecx
add ecx, ecx
or ecx, dword [esp + 0x9c]
add ecx, ecx
add ecx, ecx
add ecx, ecx
or ecx, dword [esp + 0x74]
add ecx, ecx
add ecx, ecx
add ecx, ecx
or ecx, dword [esp + 0x70]
add ecx, ecx
or ecx, edx
mov edx, dword [esp + 0x98]
add ecx, ecx
or ecx, eax
push ecx
mov ecx, dword [edx + 0x48]
call fcn.00501a20
test eax, eax
je 0x4c5bb0
mov eax, dword [ebp + 0x10]
imul eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
mov ecx, ebx
sar ecx, 3
add eax, ecx
add eax, edx
mov edx, ebx
and edx, 7
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
or byte [eax], dl
inc ebx
cmp ebx, dword [esp + 0xc0]
jl 0x4c5670
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
jl 0x4c4d10
mov eax, dword [esp + 0x58]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xac
ret 0x24
pop edi
mov eax, esi
pop esi
add esp, 0xac
ret 0x24