Function at 0x4cab99
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.004c6110
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.00512a40
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 0x4ca45f
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 0x4ca3f2
mov edi, dword [ecx + 4]
mov edx, dword [ecx]
mov ecx, esi
call fcn.004e5930
mov ecx, dword [esp + 0x40]
mov edx, edi
mov word [ecx], ax
mov ecx, esi
call fcn.004e5930
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
movzx eax, ax
jmp 0x4ca3f7
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 0x4ca430
cmp byte [edi], 0x1b
je 0x4ca430
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 0x4ca3c4
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 0x4caecb
jmp 0x4ca494
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 0x4ca4b5
mov ecx, esi
call fcn.004e58a0
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 0x4ca56f
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 0x4ca539
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 0x4ca510
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 0x4ca563
movzx eax, word [edx + 4]
mov dword [esp + 0x24], eax
jmp 0x4ca56b
mov dword [esp + 0x24], 0xffffffff
mov edx, dword [esp + 0x34]
movzx eax, word [edi]
cmp eax, dword [esp + 0x38]
jb 0x4ca585
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 0x4ca59f
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 0x4cabf7
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.0x4ca62f.17
movzx eax, byte [eax + 0x4cafb4]
jmp dword [eax*4 + 0x4caf6c]
movzx eax, word [edx + 2]
mov ecx, 0x8000
cmp ax, cx
jae case.0x4ca62f.47
mov ecx, eax
mov eax, dword [esi + 0x10]
cmp dword [eax + ecx*8], 0
jne case.0x4ca62f.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 0x4caead
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 0x4ca69c
mov ecx, esi
call fcn.004e58a0
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 0x4caead
push 0x6b
push edi
push dword [esp + 0x50]
push dword [esp + 0x58]
push esi
call fcn.004ca160
add esp, 0x14
mov ecx, eax
jmp 0x4caead
mov al, byte [edi + 4]
xor ecx, ecx
and al, 0x1f
cmp al, 0x15
setne cl
add ecx, 0x5f
push ecx
jmp 0x4ca6c5
mov al, byte [edi + 4]
xor ecx, ecx
and al, 0x1f
cmp al, 0x15
setne cl
add ecx, 0x61
push ecx
jmp 0x4ca6c5
mov al, byte [edi + 4]
xor ecx, ecx
and al, 0x1f
cmp al, 0x15
setne cl
add ecx, 0x63
push ecx
jmp 0x4ca6c5
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4ca72e
mov ecx, esi
call fcn.004e58a0
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 0x4caead
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], ecx
cmp ecx, dword [esi + 0x114]
jb 0x4ca768
mov ecx, esi
call fcn.004e58a0
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 0x4caead
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 0x4ca7f4
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 0x4ca7c2
cmp eax, 0xffffffff
jne 0x4ca7f4
cmp ecx, 0x21
not eax
cmovne eax, dword [esp + 0x18]
test eax, eax
jne 0x4ca7d8
dec dword [esi + 8]
mov ax, word [edx]
jmp 0x4ca7f0
cmp ecx, 0x23
jne 0x4ca7e9
xor eax, eax
mov byte [edx + 5], 0x1f
mov word [edx + 2], ax
jmp 0x4ca7f4
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 0x4ca871
mov eax, dword [esi + 0x10]
mov edx, dword [eax + edi*8]
test edx, edx
je 0x4ca834
cmp edx, 0xffffffff
jne 0x4ca871
cmp byte [esp + 0x57], 0x21
mov eax, edx
not eax
cmovne eax, edx
test eax, eax
je 0x4caead
cmp byte [esp + 0x57], 0x23
jne 0x4ca86a
push 0
push dword [esp + 0x1c]
push 0x1f13
push esi
call fcn.004ca2c0
add esp, 0x10
mov ecx, eax
jmp 0x4caead
mov ecx, edi
jmp 0x4caead
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4ca88b
mov ecx, esi
call fcn.004e58a0
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 0x4caead
push edi
push edx
push dword [esp + 0x50]
push dword [esp + 0x58]
push esi
call fcn.004c9cc0
add esp, 0x14
mov ecx, eax
jmp 0x4caead
mov eax, dword [esi + 8]
movzx edi, word [edx]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4ca8f2
mov ecx, esi
call fcn.004e58a0
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 0x4caead
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 0x4ca94c
mov eax, dword [ecx]
add eax, edx
push eax
push 0x19
push esi
call fcn.004e5f60
add esp, 0xc
mov dword [esp + 0x40], eax
jmp 0x4ca9cb
cmp al, 0x29
jne 0x4ca97b
movzx eax, word [ecx + 2]
cmp ax, word [esp + 0x10]
jae 0x4ca97b
mov edi, dword [esp + 0x14]
test byte [edi + 4], 0x40
mov edi, dword [esp + 0x20]
jne 0x4ca97b
mov edx, dword [esi + 0x10]
movzx ecx, word [ecx]
mov dword [esp + 0x40], ecx
mov edx, dword [edx + eax*8]
add edx, 4
je 0x4ca9cb
mov ecx, esi
call fcn.004e5930
mov ecx, dword [esi + 8]
movzx eax, ax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi + 0x114]
jb 0x4ca9a3
mov ecx, esi
call fcn.004e58a0
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 0x4ca9e9
mov ecx, esi
call fcn.004e58a0
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 0x4caead
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 0x4caa39
mov ecx, esi
call fcn.004e58a0
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 0x4caea9
movzx ecx, word [edi + 2]
mov eax, ecx
and eax, 0x1f
cmp eax, 0xe
je 0x4caacd
cmp eax, 0xd
je 0x4caacd
cmp eax, 0x15
je 0x4caac4
cmp eax, 0x16
je 0x4caac4
test ecx, 0x800
mov ecx, esi
je 0x4caab2
mov edx, 0x1f
call fcn.004e5930
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 0x4caead
xor edx, edx
call fcn.004e5930
mov edx, dword [esp + 0x34]
mov ecx, eax
jmp 0x4cac28
mov ecx, dword [esp + 0x18]
jmp 0x4cac28
mov eax, dword [esi + 8]
movzx edi, word [edx]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4caaea
mov ecx, esi
call fcn.004e58a0
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 0x4caead
movzx eax, word [edx]
mov ecx, 0x8000
cmp ax, cx
jae 0x4cab24
cmp word [edx + 2], cx
jb 0x4cab2a
cmp ax, word [edx + 2]
jne 0x4cab2d
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 0x4cab56
cmp eax, 0x8000
jb 0x4caea9
cmp edx, eax
je 0x4caea9
mov edi, dword [esi + 8]
cmp edi, dword [esi + 0x114]
jb 0x4cab74
mov ecx, esi
call fcn.004e58a0
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 0x4caea9
dec dword [esi + 8]
mov ax, word [edx]
mov word [edi + 6], ax
movzx ecx, word [edx + 2]
jmp 0x4caead
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 0x4cabce
mov ecx, esi
call fcn.004e58a0
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 0x4caea9
mov al, byte [edi + 5]
cmp al, 0x5b
jne 0x4caca7
movzx eax, word [edi + 2]
and eax, 0x1f
cmp eax, 0x15
je 0x4cac17
cmp eax, 0x16
jne 0x4caea9
and cl, 0x1f
cmp cl, 0xe
je 0x4cac40
cmp cl, 0xd
je 0x4cac40
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 0x4caead
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 0x4cac7b
mov ecx, esi
call fcn.004e58a0
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 0x4caea9
cmp al, 0x63
jne 0x4cad7c
mov ecx, dword [esp + 0x4c]
movzx eax, word [edi]
movzx eax, word [ecx + eax*2]
mov ecx, eax
test ax, ax
je 0x4cad28
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 0x4cacf8
mov ecx, esi
call fcn.004e58a0
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 0x4caea9
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x4cad55
mov ecx, esi
call fcn.004e58a0
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 0x4caead
cmp al, 0x64
jne 0x4cae4a
movzx eax, word [edi]
mov ecx, dword [esp + 0x4c]
movzx eax, word [ecx + eax*2]
test ax, ax
je 0x4cadef
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 0x4cadba
mov ecx, esi
call fcn.004e58a0
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 0x4caea9
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi + 0x114]
jb 0x4cae20
mov ecx, esi
call fcn.004e58a0
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 0x4caea9
cmp al, 0x54
jne 0x4cae9b
movzx eax, word [edi + 2]
mov ecx, dword [esp + 0x4c]
movzx eax, word [ecx + eax*2]
test ax, ax
je 0x4caea9
mov edi, dword [esi + 8]
mov dword [esp + 0xc], eax
cmp edi, dword [esi + 0x114]
jb 0x4cae75
mov ecx, esi
call fcn.004e58a0
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 0x4caea9
cmp al, 0x11
jne 0x4caea9
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 0x4ca490
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x24], eax
jne 0x4caf1c
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 0x4caf1c
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 0x4caef5
mov esi, dword [esp + 0x5c]
mov ecx, dword [esi + 8]
dec ecx
cmp ecx, 0x8001
jb 0x4caf66
mov edi, 0x8000
nop dword [eax]
mov edx, dword [esi + 0x10]
cmp byte [edx + ecx*8 + 5], 0x13
jne 0x4caf66
movzx eax, word [edx + ecx*8]
cmp ax, di
jb 0x4caf48
or byte [edx + eax*8 + 4], 0x40
movzx edx, word [edx + ecx*8 + 2]
cmp edx, dword [esi + 0x11c]
jbe 0x4caf5d
mov eax, dword [esi + 0x10]
or byte [eax + edx*8 + 4], 0x40
dec ecx
cmp ecx, 0x8001
jae 0x4caf30
pop edi
pop esi
add esp, 0x50
ret