Function at 0x480710
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.004587a0
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.004a8f80
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 0x48085f
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 0x4807f2
mov edi, dword [ecx + 4]
mov edx, dword [ecx]
mov ecx, esi
call fcn.00471b90
mov ecx, dword [esp + 0x40]
mov edx, edi
mov word [ecx], ax
mov ecx, esi
call fcn.00471b90
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
movzx eax, ax
jmp 0x4807f7
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 0x480830
cmp byte [edi], 0x1b
je 0x480830
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 0x4807c4
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 0x4812cb
jmp 0x480894
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 0x4808b5
mov ecx, esi
call fcn.00471b00
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 0x48096f
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 + 8]
xor edx, edx
mov dword [esp + 0x24], eax
test eax, eax
je 0x480939
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 0x480910
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 0x480963
movzx eax, word [edx + 4]
mov dword [esp + 0x24], eax
jmp 0x48096b
mov dword [esp + 0x24], 0xffffffff
mov edx, dword [esp + 0x34]
movzx eax, word [edi]
cmp eax, dword [esp + 0x38]
jb 0x480985
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 0x48099f
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 0x480ff7
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, 0x52
ja case.0x480a2f.17
movzx eax, byte [eax + 0x4813b4]
jmp dword [eax*4 + 0x48136c]
movzx eax, word [edx + 2]
mov ecx, 0x8000
cmp ax, cx
jae case.0x480a2f.47
mov ecx, eax
mov eax, dword [esi + 0x10]
cmp dword [eax + ecx*8], 0
jne case.0x480a2f.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 0x4812ad
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 0x480a9c
mov ecx, esi
call fcn.00471b00
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 0x4812ad
push 0x64
push edi
push dword [esp + 0x50]
push dword [esp + 0x58]
push esi
call fcn.00480560
add esp, 0x14
mov ecx, eax
jmp 0x4812ad
mov al, byte [edi + 4]
xor ecx, ecx
and al, 0x1f
cmp al, 0x15
setne cl
add ecx, 0x58
push ecx
jmp 0x480ac5
mov al, byte [edi + 4]
xor ecx, ecx
and al, 0x1f
cmp al, 0x15
setne cl
add ecx, 0x5a
push ecx
jmp 0x480ac5
mov al, byte [edi + 4]
xor ecx, ecx
and al, 0x1f
cmp al, 0x15
setne cl
add ecx, 0x5c
push ecx
jmp 0x480ac5
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x480b2e
mov ecx, esi
call fcn.00471b00
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 0x4812ad
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], ecx
cmp ecx, dword [esi + 0x114]
jb 0x480b68
mov ecx, esi
call fcn.00471b00
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 0x4812ad
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 0x480bf4
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 0x480bc2
cmp eax, 0xffffffff
jne 0x480bf4
cmp ecx, 0x21
not eax
cmovne eax, dword [esp + 0x18]
test eax, eax
jne 0x480bd8
dec dword [esi + 8]
mov ax, word [edx]
jmp 0x480bf0
cmp ecx, 0x23
jne 0x480be9
xor eax, eax
mov byte [edx + 5], 0x1f
mov word [edx + 2], ax
jmp 0x480bf4
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 0x480c71
mov eax, dword [esi + 0x10]
mov edx, dword [eax + edi*8]
test edx, edx
je 0x480c34
cmp edx, 0xffffffff
jne 0x480c71
cmp byte [esp + 0x57], 0x21
mov eax, edx
not eax
cmovne eax, edx
test eax, eax
je 0x4812ad
cmp byte [esp + 0x57], 0x23
jne 0x480c6a
push 0
push dword [esp + 0x1c]
push 0x1f13
push esi
call fcn.004806c0
add esp, 0x10
mov ecx, eax
jmp 0x4812ad
mov ecx, edi
jmp 0x4812ad
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x480c8b
mov ecx, esi
call fcn.00471b00
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 0x4812ad
push edi
push edx
push dword [esp + 0x50]
push dword [esp + 0x58]
push esi
call fcn.0047ff90
add esp, 0x14
mov ecx, eax
jmp 0x4812ad
mov eax, dword [esi + 8]
movzx edi, word [edx]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x480cf2
mov ecx, esi
call fcn.00471b00
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], 0x44130012
mov word [eax + ecx*8], di
jmp 0x4812ad
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 0x480d4c
mov eax, dword [ecx]
add eax, edx
push eax
push 0x19
push esi
call fcn.00473d10
add esp, 0xc
mov dword [esp + 0x40], eax
jmp 0x480dcb
cmp al, 0x29
jne 0x480d7b
movzx eax, word [ecx + 2]
cmp ax, word [esp + 0x10]
jae 0x480d7b
mov edi, dword [esp + 0x14]
test byte [edi + 4], 0x40
mov edi, dword [esp + 0x20]
jne 0x480d7b
mov edx, dword [esi + 0x10]
movzx ecx, word [ecx]
mov dword [esp + 0x40], ecx
mov edx, dword [edx + eax*8]
add edx, 4
je 0x480dcb
mov ecx, esi
call fcn.00471b90
mov ecx, dword [esi + 8]
movzx eax, ax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi + 0x114]
jb 0x480da3
mov ecx, esi
call fcn.00471b00
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 0x480de9
mov ecx, esi
call fcn.00471b00
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
inc eax
mov dword [esi + 8], eax
mov edx, 0x4513
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 0x4812ad
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 0x480e39
mov ecx, esi
call fcn.00471b00
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 0x4812a9
movzx ecx, word [edi + 2]
mov eax, ecx
and eax, 0x1f
cmp eax, 0xe
je 0x480ecd
cmp eax, 0xd
je 0x480ecd
cmp eax, 0x15
je 0x480ec4
cmp eax, 0x16
je 0x480ec4
test ecx, 0x800
mov ecx, esi
je 0x480eb2
mov edx, 0x1f
call fcn.00471b90
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 0x4812ad
xor edx, edx
call fcn.00471b90
mov edx, dword [esp + 0x34]
mov ecx, eax
jmp 0x481028
mov ecx, dword [esp + 0x18]
jmp 0x481028
mov eax, dword [esi + 8]
movzx edi, word [edx]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x480eea
mov ecx, esi
call fcn.00471b00
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 0x4812ad
movzx eax, word [edx]
mov ecx, 0x8000
cmp ax, cx
jae 0x480f24
cmp word [edx + 2], cx
jb 0x480f2a
cmp ax, word [edx + 2]
jne 0x480f2d
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 0x480f56
cmp eax, 0x8000
jb 0x4812a9
cmp edx, eax
je 0x4812a9
mov edi, dword [esi + 8]
cmp edi, dword [esi + 0x114]
jb 0x480f74
mov ecx, esi
call fcn.00471b00
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 0x4812a9
dec dword [esi + 8]
mov ax, word [edx]
mov word [edi + 6], ax
movzx ecx, word [edx + 2]
jmp 0x4812ad
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 0x480fce
mov ecx, esi
call fcn.00471b00
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 0x4812a9
mov al, byte [edi + 5]
cmp al, 0x5a
jne 0x4810a7
movzx eax, word [edi + 2]
and eax, 0x1f
cmp eax, 0x15
je 0x481017
cmp eax, 0x16
jne 0x4812a9
and cl, 0x1f
cmp cl, 0xe
je 0x481040
cmp cl, 0xd
je 0x481040
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 0x4812ad
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 0x48107b
mov ecx, esi
call fcn.00471b00
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 0x4812a9
cmp al, 0x62
jne 0x48117c
mov ecx, dword [esp + 0x4c]
movzx eax, word [edi]
movzx eax, word [ecx + eax*2]
mov ecx, eax
test ax, ax
je 0x481128
movzx eax, word [edx + 4]
mov dword [esp + 0x14], eax
movzx eax, word [edx + 2]
mov dword [esp + 0x18], eax
mov eax, 0x6300
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 0x4810f8
mov ecx, esi
call fcn.00471b00
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 0x4812a9
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 0x114]
jb 0x481155
mov ecx, esi
call fcn.00471b00
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 0x4812ad
cmp al, 0x63
jne 0x48124a
movzx eax, word [edi]
mov ecx, dword [esp + 0x4c]
movzx eax, word [ecx + eax*2]
test ax, ax
je 0x4811ef
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 0x4811ba
mov ecx, esi
call fcn.00471b00
mov ecx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov edx, 0x6300
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 0x4812a9
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi + 0x114]
jb 0x481220
mov ecx, esi
call fcn.00471b00
mov ecx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov edx, 0x6300
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 0x4812a9
cmp al, 0x53
jne 0x48129b
movzx eax, word [edi + 2]
mov ecx, dword [esp + 0x4c]
movzx eax, word [ecx + eax*2]
test ax, ax
je 0x4812a9
mov edi, dword [esi + 8]
mov dword [esp + 0xc], eax
cmp edi, dword [esi + 0x114]
jb 0x481275
mov ecx, esi
call fcn.00471b00
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 0x4812a9
cmp al, 0x11
jne 0x4812a9
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 0x480890
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x24], eax
jne 0x48131c
mov ax, word [esi + 8]
mov ecx, dword [edx]
movzx edi, byte [edx + 8]
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 0x48131c
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 0x4812f5
mov esi, dword [esp + 0x5c]
mov ecx, dword [esi + 8]
dec ecx
cmp ecx, 0x8001
jb 0x481366
mov edi, 0x8000
nop dword [eax]
mov edx, dword [esi + 0x10]
cmp byte [edx + ecx*8 + 5], 0x13
jne 0x481366
movzx eax, word [edx + ecx*8]
cmp ax, di
jb 0x481348
or byte [edx + eax*8 + 4], 0x40
movzx edx, word [edx + ecx*8 + 2]
cmp edx, dword [esi + 0x11c]
jbe 0x48135d
mov eax, dword [esi + 0x10]
or byte [eax + edx*8 + 4], 0x40
dec ecx
cmp ecx, 0x8001
jae 0x481330
pop edi
pop esi
add esp, 0x50
ret