Function at 0x4c4b40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x1c], eax
sub eax, edi
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x38], edi
lea edx, [eax + eax*4]
add edx, edx
call fcn.004c0940
mov ecx, dword [esp + 0x20]
mov edx, eax
shl ecx, 3
push ecx
mov ecx, dword [esi + 0x10]
shl edi, 3
add ecx, edi
mov dword [esp + 0x4c], edx
push ecx
push edx
mov dword [esp + 0x30], edx
call fcn.0050d110
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
shl eax, 2
sub eax, dword [esp + 0x38]
mov dword [esi + 8], 0x8001
mov dword [esi + 0x11c], 0
mov dword [esp + 0x20], edx
lea eax, [ecx + eax*2]
sub ecx, edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
cmp edx, 0x8000
ja 0x4c4c8f
mov ecx, dword [esp + 0x24]
lea eax, [ecx + 4]
mov dword [esp + 0x44], eax
lea edi, [ecx + 5]
mov eax, dword [esp + 0x24]
add ecx, 8
add eax, 6
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
cmp byte [edi], 0x1d
jne 0x4c4c22
mov edi, dword [ecx + 4]
mov edx, dword [ecx]
mov ecx, esi
call fcn.004e0160
mov ecx, dword [esp + 0x40]
mov edx, edi
mov word [ecx], ax
mov ecx, esi
call fcn.004e0160
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
movzx eax, ax
jmp 0x4c4c27
mov word [eax], dx
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov word [ecx + edx*2], ax
mov eax, dword [esp + 0x44]
movzx ecx, byte [eax]
mov eax, 0x604000
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0x3c]
test al, 1
mov eax, dword [esp + 0x40]
je 0x4c4c60
cmp byte [edi], 0x1b
je 0x4c4c60
add dword [esp + 0x44], 8
inc edx
add eax, 8
add ecx, 8
add edi, 8
add dword [esp + 0x44], 8
inc edx
add eax, 8
mov dword [esp + 0x20], edx
add ecx, 8
mov dword [esp + 0x40], eax
add edi, 8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], edi
cmp edx, 0x8000
jbe 0x4c4bf4
mov ecx, dword [esp + 0x48]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], 0x8000
movzx eax, word [edx + 4]
mov dword [esp + 0x24], eax
mov eax, 0x8001
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x1c], eax
jbe 0x4c56fb
jmp 0x4c4cc4
mov ecx, dword [esp + 0x48]
lea edi, [ecx + eax*8]
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x44], ecx
cmp ecx, dword [esi + 0x114]
jb 0x4c4ce5
mov ecx, esi
call fcn.004e00d0
mov ecx, dword [esp + 0x44]
mov edx, dword [esi + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 8], eax
lea eax, [ecx*8]
add edx, eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], edx
mov dword [esp + 0x50], 0
cmp dword [esp + 0x2c], eax
jb 0x4c4d9f
mov edx, dword [esp + 0x28]
mov word [edx + 4], cx
mov ecx, dword [edx]
mov eax, dword [esi + 0x20]
lea eax, [eax + ecx*4]
mov dword [esp + 0x18], eax
movzx eax, byte [edx + 0xa]
xor edx, edx
mov dword [esp + 0x24], eax
test eax, eax
je 0x4c4d69
mov edi, dword [esp + 0x18]
nop dword [eax + eax]
mov ecx, dword [edi + edx*4]
mov esi, dword [esp + 0x48]
movzx eax, cx
and ecx, 0xffff0000
movzx eax, word [esi + eax*8 + 6]
or eax, ecx
mov dword [edi + edx*4], eax
inc edx
cmp edx, dword [esp + 0x24]
jb 0x4c4d40
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x20]
movzx eax, word [esi + 6]
mov edx, dword [esp + 0x28]
add edx, 0xc
mov dword [esp + 0x28], edx
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x44]
cmp edx, eax
jae 0x4c4d93
movzx eax, word [edx + 4]
mov dword [esp + 0x24], eax
jmp 0x4c4d9b
mov dword [esp + 0x24], 0xffffffff
mov edx, dword [esp + 0x34]
movzx eax, word [edi]
cmp eax, dword [esp + 0x38]
jb 0x4c4db5
mov esi, dword [esp + 0x48]
movzx eax, word [esi + eax*8 + 6]
mov esi, dword [esp + 0x5c]
mov word [edx], ax
movzx eax, word [edi + 2]
cmp eax, dword [esp + 0x38]
jb 0x4c4dcf
mov esi, dword [esp + 0x48]
movzx eax, word [esi + eax*8 + 6]
mov esi, dword [esp + 0x5c]
mov word [edx + 2], ax
movzx ecx, cx
movzx eax, cx
mov dword [esp + 0x30], eax
movzx eax, byte [edi + 5]
mov word [edi + 6], cx
mov byte [edx + 5], al
movzx eax, byte [edi + 4]
and al, 0x9f
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x2c]
mov byte [edx + 4], al
mov eax, dword [esp + 0x4c]
lea eax, [eax + ecx*2]
xor ecx, ecx
mov word [eax], cx
mov cl, byte [edi + 4]
mov dword [esp + 8], eax
movzx eax, cl
and eax, 0x1f
sub eax, 0x15
cmp eax, 1
ja 0x4c5427
movzx eax, word [edi]
mov ecx, dword [esp + 0x4c]
movzx eax, word [ecx + eax*2]
mov ecx, eax
mov dword [esp + 0x18], eax
movzx eax, byte [edx + 4]
and al, 0x93
mov dword [esp + 0x40], ecx
or al, 0x13
mov byte [edx + 4], al
mov al, byte [edi + 5]
movzx ecx, al
mov byte [esp + 0x57], al
mov dword [esp + 0x14], ecx
lea eax, [ecx - 0x10]
cmp eax, 0x53
ja case.0x4c4e5f.17
movzx eax, byte [eax + 0x4c57e4]
jmp dword [eax*4 + 0x4c579c]
movzx eax, word [edx + 2]
mov ecx, 0x8000
cmp ax, cx
jae case.0x4c4e5f.47
mov ecx, eax
mov eax, dword [esi + 0x10]
cmp dword [eax + ecx*8], 0
jne case.0x4c4e5f.47
movzx eax, word [edx]
mov ecx, dword [esp + 0x4c]
mov word [edi + 6], ax
mov eax, dword [esp + 0x40]
mov word [edx], ax
movzx eax, word [edi + 2]
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x44]
mov word [edx + 2], ax
jmp 0x4c56dd
movzx eax, word [edi + 2]
mov ecx, dword [esp + 0x4c]
movzx edi, word [ecx + eax*2]
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4c4ecc
mov ecx, esi
call fcn.004e00d0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
inc eax
mov dword [esi + 8], eax
mov edx, 0x1013
mov eax, dword [esi + 0x10]
mov word [eax + ecx*8 + 4], dx
mov edx, dword [esp + 0x40]
mov word [eax + ecx*8], dx
mov word [eax + ecx*8 + 2], di
jmp 0x4c56dd
push 0x6b
push edi
push dword [esp + 0x50]
push dword [esp + 0x58]
push esi
call fcn.004c4990
add esp, 0x14
mov ecx, eax
jmp 0x4c56dd
mov al, byte [edi + 4]
xor ecx, ecx
and al, 0x1f
cmp al, 0x15
setne cl
add ecx, 0x5f
push ecx
jmp 0x4c4ef5
mov al, byte [edi + 4]
xor ecx, ecx
and al, 0x1f
cmp al, 0x15
setne cl
add ecx, 0x61
push ecx
jmp 0x4c4ef5
mov al, byte [edi + 4]
xor ecx, ecx
and al, 0x1f
cmp al, 0x15
setne cl
add ecx, 0x63
push ecx
jmp 0x4c4ef5
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4c4f5e
mov ecx, esi
call fcn.004e00d0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
inc eax
mov edx, dword [esp + 0x40]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov dword [eax + ecx*8 + 2], 0x1f130000
mov word [eax + ecx*8], dx
jmp 0x4c56dd
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], ecx
cmp ecx, dword [esi + 0x114]
jb 0x4c4f98
mov ecx, esi
call fcn.004e00d0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov dword [eax + ecx*8 + 2], 0x20130000
mov word [eax + ecx*8], dx
mov word [edi + 6], cx
mov ecx, dword [esp + 0x44]
jmp 0x4c56dd
movzx eax, word [edx + 2]
mov dword [esp + 0x18], eax
mov edx, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
cmp eax, 0x8000
jae 0x4c5024
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + edi*8]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4c4ff2
cmp eax, 0xffffffff
jne 0x4c5024
cmp ecx, 0x21
not eax
cmovne eax, dword [esp + 0x18]
test eax, eax
jne 0x4c5008
dec dword [esi + 8]
mov ax, word [edx]
jmp 0x4c5020
cmp ecx, 0x23
jne 0x4c5019
xor eax, eax
mov byte [edx + 5], 0x1f
mov word [edx + 2], ax
jmp 0x4c5024
dec dword [esi + 8]
mov eax, dword [esp + 0x30]
mov word [edi + 6], ax
mov edx, dword [esp + 0x4c]
movzx eax, word [edi]
movzx eax, word [edx + eax*2]
movzx ecx, ax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
movzx ecx, ax
movzx eax, word [edi + 2]
movzx eax, word [edx + eax*2]
mov edi, eax
mov edx, eax
mov dword [esp + 0x30], edx
cmp edi, 0x8000
jae 0x4c50a1
mov eax, dword [esi + 0x10]
mov edx, dword [eax + edi*8]
test edx, edx
je 0x4c5064
cmp edx, 0xffffffff
jne 0x4c50a1
cmp byte [esp + 0x57], 0x21
mov eax, edx
not eax
cmovne eax, edx
test eax, eax
je 0x4c56dd
cmp byte [esp + 0x57], 0x23
jne 0x4c509a
push 0
push dword [esp + 0x1c]
push 0x1f13
push esi
call fcn.004c4af0
add esp, 0x10
mov ecx, eax
jmp 0x4c56dd
mov ecx, edi
jmp 0x4c56dd
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4c50bb
mov ecx, esi
call fcn.004e00d0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
inc eax
mov edx, dword [esp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
shl edx, 8
or edx, 0x13
mov word [eax + ecx*8 + 4], dx
mov edx, dword [esp + 0x20]
mov word [eax + ecx*8], dx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*8 + 2], dx
jmp 0x4c56dd
push edi
push edx
push dword [esp + 0x50]
push dword [esp + 0x58]
push esi
call fcn.004c44f0
add esp, 0x14
mov ecx, eax
jmp 0x4c56dd
mov eax, dword [esi + 8]
movzx edi, word [edx]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4c5122
mov ecx, esi
call fcn.004e00d0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov dword [eax + ecx*8 + 2], 0x45130018
mov word [eax + ecx*8], di
jmp 0x4c56dd
mov ecx, dword [esp + 0x48]
mov edx, 4
movzx eax, word [edi]
lea eax, [ecx + eax*8]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x14], eax
movzx eax, word [eax + 6]
mov dword [esp + 0x40], eax
lea ecx, [ecx + eax*8]
mov al, byte [ecx + 5]
cmp al, 0x19
jne 0x4c517c
mov eax, dword [ecx]
add eax, edx
push eax
push 0x19
push esi
call fcn.004e0790
add esp, 0xc
mov dword [esp + 0x40], eax
jmp 0x4c51fb
cmp al, 0x29
jne 0x4c51ab
movzx eax, word [ecx + 2]
cmp ax, word [esp + 0x10]
jae 0x4c51ab
mov edi, dword [esp + 0x14]
test byte [edi + 4], 0x40
mov edi, dword [esp + 0x20]
jne 0x4c51ab
mov edx, dword [esi + 0x10]
movzx ecx, word [ecx]
mov dword [esp + 0x40], ecx
mov edx, dword [edx + eax*8]
add edx, 4
je 0x4c51fb
mov ecx, esi
call fcn.004e0160
mov ecx, dword [esi + 8]
movzx eax, ax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi + 0x114]
jb 0x4c51d3
mov ecx, esi
call fcn.004e00d0
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov edx, 0x2905
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + ecx*8 + 4], dx
mov edx, dword [esp + 0x40]
mov word [eax + ecx*8], dx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*8 + 2], dx
mov dword [esp + 0x40], ecx
mov eax, dword [esi + 8]
movzx edi, word [edi + 2]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4c5219
mov ecx, esi
call fcn.004e00d0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
inc eax
mov dword [esi + 8], eax
mov edx, 0x4613
mov eax, dword [esi + 0x10]
mov word [eax + ecx*8 + 4], dx
mov edx, dword [esp + 0x40]
mov word [eax + ecx*8], dx
mov word [eax + ecx*8 + 2], di
jmp 0x4c56dd
movzx eax, word [edi + 2]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esi + 8]
movzx eax, word [ecx + eax*2]
mov dword [esp + 0x18], eax
movzx eax, word [edx]
mov dword [esp + 0x14], eax
cmp edi, dword [esi + 0x114]
jb 0x4c5269
mov ecx, esi
call fcn.004e00d0
lea eax, [edi + 1]
mov ecx, 0x1013
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + edi*8 + 4], cx
mov ecx, dword [esp + 0x14]
mov word [eax + edi*8], cx
mov ecx, dword [esp + 0x18]
mov word [eax + edi*8 + 2], cx
jmp 0x4c56d9
movzx ecx, word [edi + 2]
mov eax, ecx
and eax, 0x1f
cmp eax, 0xe
je 0x4c52fd
cmp eax, 0xd
je 0x4c52fd
cmp eax, 0x15
je 0x4c52f4
cmp eax, 0x16
je 0x4c52f4
test ecx, 0x800
mov ecx, esi
je 0x4c52e2
mov edx, 0x1f
call fcn.004e0160
mov edx, dword [esi + 0x10]
add edx, dword [esp + 0xc]
mov cx, word [edx]
mov word [edi + 6], cx
mov ecx, dword [esp + 0x44]
mov byte [edx + 5], 0x26
mov word [edx + 2], ax
jmp 0x4c56dd
xor edx, edx
call fcn.004e0160
mov edx, dword [esp + 0x34]
mov ecx, eax
jmp 0x4c5458
mov ecx, dword [esp + 0x18]
jmp 0x4c5458
mov eax, dword [esi + 8]
movzx edi, word [edx]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4c531a
mov ecx, esi
call fcn.004e00d0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
inc eax
mov dword [esi + 8], eax
mov edx, 0x1013
mov eax, dword [esi + 0x10]
mov word [eax + ecx*8 + 4], dx
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*8], di
mov word [eax + ecx*8 + 2], dx
jmp 0x4c56dd
movzx eax, word [edx]
mov ecx, 0x8000
cmp ax, cx
jae 0x4c5354
cmp word [edx + 2], cx
jb 0x4c535a
cmp ax, word [edx + 2]
jne 0x4c535d
dec dword [esi + 8]
mov ecx, dword [esp + 0x4c]
movzx eax, word [edi + 2]
mov edx, dword [esp + 0x18]
movzx eax, word [ecx + eax*2]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp edx, 0x8000
jae 0x4c5386
cmp eax, 0x8000
jb 0x4c56d9
cmp edx, eax
je 0x4c56d9
mov edi, dword [esi + 8]
cmp edi, dword [esi + 0x114]
jb 0x4c53a4
mov ecx, esi
call fcn.004e00d0
mov ecx, dword [esp + 0xc]
lea eax, [edi + 1]
mov edx, 0x1313
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + edi*8 + 4], dx
mov edx, dword [esp + 0x40]
mov word [eax + edi*8], dx
mov word [eax + edi*8 + 2], cx
jmp 0x4c56d9
dec dword [esi + 8]
mov ax, word [edx]
mov word [edi + 6], ax
movzx ecx, word [edx + 2]
jmp 0x4c56dd
movzx eax, word [edi + 2]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esi + 8]
movzx eax, word [ecx + eax*2]
mov dword [esp + 0xc], eax
cmp edi, dword [esi + 0x114]
jb 0x4c53fe
mov ecx, esi
call fcn.004e00d0
mov edx, dword [esp + 0x40]
lea eax, [edi + 1]
mov dword [esi + 8], eax
mov ecx, 0x1093
mov eax, dword [esi + 0x10]
mov word [eax + edi*8 + 4], cx
mov ecx, dword [esp + 0xc]
mov word [eax + edi*8], dx
mov word [eax + edi*8 + 2], cx
jmp 0x4c56d9
mov al, byte [edi + 5]
cmp al, 0x5b
jne 0x4c54d7
movzx eax, word [edi + 2]
and eax, 0x1f
cmp eax, 0x15
je 0x4c5447
cmp eax, 0x16
jne 0x4c56d9
and cl, 0x1f
cmp cl, 0xe
je 0x4c5470
cmp cl, 0xd
je 0x4c5470
mov ecx, dword [esp + 0x50]
mov ax, word [edx]
mov word [edi + 6], ax
xor eax, eax
mov dword [edx + 2], 0xc000000
mov word [edx], ax
jmp 0x4c56dd
movzx eax, word [edi]
mov edx, dword [esp + 0x4c]
movzx eax, word [edx + eax*2]
mov dword [esp + 0x18], eax
movzx eax, cl
mov ecx, 0x1000
or ax, cx
mov ecx, dword [esi + 8]
movzx eax, ax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi + 0x114]
jb 0x4c54ab
mov ecx, esi
call fcn.004e00d0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + ecx*8 + 4], dx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*8], dx
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*8 + 2], dx
mov word [edi + 6], cx
jmp 0x4c56d9
cmp al, 0x63
jne 0x4c55ac
mov ecx, dword [esp + 0x4c]
movzx eax, word [edi]
movzx eax, word [ecx + eax*2]
mov ecx, eax
test ax, ax
je 0x4c5558
movzx eax, word [edx + 4]
mov dword [esp + 0x14], eax
movzx eax, word [edx + 2]
mov dword [esp + 0x18], eax
mov eax, 0x6400
mov word [edx + 4], ax
mov word [edx + 2], cx
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi + 0x114]
jb 0x4c5528
mov ecx, esi
call fcn.004e00d0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + ecx*8 + 4], dx
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*8], dx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*8 + 2], dx
movzx eax, cx
mov ecx, eax
mov word [edi + 6], ax
mov dword [esp + 0x30], ecx
movzx eax, byte [edi + 4]
and eax, 0x1f
sub eax, 0x15
cmp eax, 1
ja 0x4c56d9
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4c5585
mov ecx, esi
call fcn.004e00d0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
inc eax
mov dword [esi + 8], eax
mov edx, 0x1013
mov eax, dword [esi + 0x10]
mov word [eax + ecx*8 + 4], dx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*8], dx
mov word [eax + ecx*8 + 2], dx
jmp 0x4c56dd
cmp al, 0x64
jne 0x4c567a
movzx eax, word [edi]
mov ecx, dword [esp + 0x4c]
movzx eax, word [ecx + eax*2]
test ax, ax
je 0x4c561f
movzx ecx, word [edx + 2]
mov word [edx + 2], ax
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi + 0x114]
jb 0x4c55ea
mov ecx, esi
call fcn.004e00d0
mov ecx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov edx, 0x6400
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + ecx*8 + 4], dx
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*8], dx
mov edx, dword [esp + 0x14]
mov word [eax + ecx*8 + 2], dx
movzx eax, cx
mov ecx, eax
mov word [edi + 6], ax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x4c]
movzx eax, word [edi + 2]
movzx eax, word [ecx + eax*2]
mov ecx, eax
mov dword [esp + 0x14], ecx
test ax, ax
je 0x4c56d9
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi + 0x114]
jb 0x4c5650
mov ecx, esi
call fcn.004e00d0
mov ecx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov edx, 0x6400
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + ecx*8 + 4], dx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*8], dx
mov edx, dword [esp + 0x14]
mov word [eax + ecx*8 + 2], dx
mov word [edi + 6], cx
jmp 0x4c56d9
cmp al, 0x54
jne 0x4c56cb
movzx eax, word [edi + 2]
mov ecx, dword [esp + 0x4c]
movzx eax, word [ecx + eax*2]
test ax, ax
je 0x4c56d9
mov edi, dword [esi + 8]
mov dword [esp + 0xc], eax
cmp edi, dword [esi + 0x114]
jb 0x4c56a5
mov ecx, esi
call fcn.004e00d0
mov edx, dword [esp + 0x3c]
lea eax, [edi + 1]
mov dword [esi + 8], eax
mov ecx, 0x1000
mov eax, dword [esi + 0x10]
mov word [eax + edi*8 + 4], cx
mov ecx, dword [esp + 0xc]
mov word [eax + edi*8], dx
mov word [eax + edi*8 + 2], cx
jmp 0x4c56d9
cmp al, 0x11
jne 0x4c56d9
mov eax, dword [esp + 0x44]
mov dword [esi + 0x11c], eax
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 8]
mov word [eax], cx
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x1c]
jb 0x4c4cc0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x24], eax
jne 0x4c574c
mov ax, word [esi + 8]
mov ecx, dword [edx]
movzx edi, byte [edx + 0xa]
mov word [edx + 4], ax
xor edx, edx
mov eax, dword [esi + 0x20]
lea eax, [eax + ecx*4]
mov dword [esp + 0x18], eax
test edi, edi
je 0x4c574c
mov esi, eax
mov ecx, dword [esi + edx*4]
mov esi, dword [esp + 0x48]
movzx eax, cx
and ecx, 0xffff0000
movzx eax, word [esi + eax*8 + 6]
mov esi, dword [esp + 0x18]
or eax, ecx
mov dword [esi + edx*4], eax
inc edx
cmp edx, edi
jb 0x4c5725
mov esi, dword [esp + 0x5c]
mov ecx, dword [esi + 8]
dec ecx
cmp ecx, 0x8001
jb 0x4c5796
mov edi, 0x8000
nop dword [eax]
mov edx, dword [esi + 0x10]
cmp byte [edx + ecx*8 + 5], 0x13
jne 0x4c5796
movzx eax, word [edx + ecx*8]
cmp ax, di
jb 0x4c5778
or byte [edx + eax*8 + 4], 0x40
movzx edx, word [edx + ecx*8 + 2]
cmp edx, dword [esi + 0x11c]
jbe 0x4c578d
mov eax, dword [esi + 0x10]
or byte [eax + edx*8 + 4], 0x40
dec ecx
cmp ecx, 0x8001
jae 0x4c5760
pop edi
pop esi
add esp, 0x50
ret