Function at 0x475c30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
push esi
push edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
add ecx, 0x50
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x50
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x2f0]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x50]
movzx eax, byte [edx + 0x2c]
imul eax, eax, 0x50
lea ecx, [ecx + eax + 8]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x1e8
push edx
call fcn.0047a8a0
add esp, 8
not eax
not edx
and eax, dword [ebp + 0x10]
and edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
mov edx, dword [edx + 0x44]
mov ecx, dword [ebp + 0xc]
call fcn.0049f990
and eax, 1
and edx, 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x24]
and ecx, 0x40
je 0x475d14
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x2c]
and eax, 0x20
jne 0x475d14
mov dword [ebp - 0x1c8], 1
jmp 0x475d1e
mov dword [ebp - 0x1c8], 0
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d9b0
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d9b0
add esp, 4
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x50]
movzx eax, byte [edx + 0x2c]
test eax, eax
jle 0x475db0
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x24]
and edx, 8
je 0x475db0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x2c]
mov dword [eax], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push ecx
push 0
push 0x43
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d6c0
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
jmp 0x475dc1
mov ecx, dword [ebp - 0x54]
sub ecx, 1
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0
jle 0x475ddc
mov edx, dword [ebp - 0x54]
imul edx, edx, 0x50
mov eax, dword [ebp + 8]
cmp dword [eax + edx + 0x2f0], 0
jne 0x475ddc
jmp 0x475db8
mov ecx, dword [ebp - 0x54]
imul ecx, ecx, 0x50
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x2fc]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x28]
shr edx, 4
and edx, 1
je 0x475e49
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x58]
push ecx
push 0xf
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d5d0
add esp, 0x14
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push 0x10
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d6c0
add esp, 0x10
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x2d], 0xd
jmp 0x477954
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x24]
and ecx, 0x400
je 0x476142
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + 0x28]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00448b10
add esp, 4
mov edx, dword [ebp - 0x5c]
add edx, 2
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0044bee0
add esp, 8
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x54], 0
jmp 0x475ea2
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x5c]
jge 0x475f2f
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x60]
lea ecx, [eax + edx + 2]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0x54]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x475ed2
jmp 0x475e99
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 0xc]
and ecx, 1
je 0x475f09
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00475020
add esp, 0x18
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x68], eax
jmp 0x475f2a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x70], eax
push 1
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00475a10
add esp, 0x10
jmp 0x475e99
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x18]
push eax
push 0x43
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d6c0
add esp, 0x10
mov edx, dword [ebp - 0x60]
add edx, 1
push edx
mov eax, dword [ebp - 0x5c]
push eax
push 0x43
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d6c0
add esp, 0x10
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0x1c]
neg eax
sbb eax, eax
and eax, 0xfffffffa
add eax, 0xffffffff
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0xb
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d810
add esp, 0x1c
mov ecx, dword [ebp - 0x28]
mov byte [ecx + 0x1c], 0
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x31]
neg edx
sbb edx, edx
and edx, 0x69
add edx, 0x3d
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x2d], dl
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042dcc0
add esp, 4
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x5c]
sub edx, 1
mov dword [ebp - 0x54], edx
jmp 0x475fea
mov eax, dword [ebp - 0x54]
sub eax, 1
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x476131
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0x54]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x54], 0x10
jge 0x47602f
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + 0x1e]
mov ecx, dword [ebp - 0x54]
sar eax, cl
and eax, 1
je 0x47602f
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.00474e00
add esp, 8
jmp 0x47612c
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 0xc]
and ecx, 1
je 0x47612c
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + 0x49]
test eax, eax
jne 0x47609b
mov ecx, dword [ebp - 0x64]
sub ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx + edx + 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042e420
add esp, 8
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x78]
movzx edx, byte [ecx]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d5d0
add esp, 0x14
push 0
push 0
push 0x35
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00445310
add esp, 0x10
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x47612c
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
push 0
push 0x96
mov eax, dword [ebp - 0x18]
push eax
call fcn.00445240
add esp, 0xc
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x74]
mov dword [ecx + 0x10], edx
cmp dword [ebp - 0x74], 0
je 0x476112
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x60]
lea edx, [ecx + eax + 2]
mov eax, dword [ebp - 0x74]
mov dword [eax + 0x1c], edx
push 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0044acb0
add esp, 0x10
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004458b0
add esp, 8
jmp 0x475fe1
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00448b30
add esp, 4
jmp 0x477954
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x24]
and ecx, 0x100
je 0x476216
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x24]
and eax, 5
je 0x476216
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x30]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00475020
add esp, 0x18
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x10]
je 0x4761bf
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0044be50
add esp, 8
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0x1f
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d5d0
add esp, 0x14
push 1
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00448f10
add esp, 0xc
mov ecx, dword [ebp - 0x48]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00448990
add esp, 0x10
mov ecx, dword [ebp - 0x50]
mov byte [ecx + 0x2d], 0xa6
jmp 0x477954
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x24]
and eax, 0x100
je 0x4765ba
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x24]
and edx, 2
je 0x4765ba
mov dword [ebp - 0x90], 0xa6
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x24]
and edx, 0x20
je 0x476287
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0x54]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x24]
and eax, 0x10
je 0x4762aa
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0x54]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x1c], 0
je 0x4762c8
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x88], 0
je 0x47640a
mov byte [ebp - 0xa4], 0x1b
mov byte [ebp - 0xa3], 0x19
mov byte [ebp - 0xa2], 0x18
mov byte [ebp - 0xa1], 0x1a
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x10]
push eax
call fcn.004449d0
add esp, 4
test eax, eax
je 0x476371
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0044be00
add esp, 4
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x94], edx
push 1
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00475a10
add esp, 0x10
mov ecx, dword [ebp - 0x98]
movzx edx, byte [ecx]
sub edx, 0x36
or edx, 1
movzx eax, byte [ebp + edx - 0xa4]
mov dword [ebp - 0xa0], eax
jmp 0x4763be
lea ecx, [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0044a380
add esp, 0xc
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.00474e00
add esp, 8
mov ecx, dword [ebp - 0x98]
movzx edx, byte [ecx]
movzx eax, byte [ebp + edx - 0xda]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d5d0
add esp, 0x14
push 1
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00448f10
add esp, 0xc
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0044be50
add esp, 8
jmp 0x47642f
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
xor eax, eax
cmp dword [ebp - 0x1c], 0
sete al
lea eax, [eax*4 + 0x21]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d6c0
add esp, 0x10
cmp dword [ebp - 0x80], 0
je 0x4764fe
mov edx, dword [ebp - 0x80]
mov eax, dword [edx]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x84], edx
push 1
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00475a10
add esp, 0x10
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.004449d0
add esp, 4
test eax, eax
jne 0x4764c5
mov eax, dword [ebp - 0xa8]
movzx ecx, byte [eax]
cmp ecx, 0x38
je 0x4764b0
mov edx, dword [ebp - 0xa8]
movzx eax, byte [edx]
cmp eax, 0x36
jne 0x4764c5
xor ecx, ecx
cmp dword [ebp - 0x1c], 0
sete cl
lea ecx, [ecx + ecx + 0x37]
mov dword [ebp - 0x90], ecx
jmp 0x4764d8
xor edx, edx
cmp dword [ebp - 0x1c], 0
setne dl
lea edx, [edx + edx + 0x36]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004449d0
add esp, 4
test eax, eax
jne 0x4764fe
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.00474e00
add esp, 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042dcc0
add esp, 4
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x1c]
neg edx
sbb edx, edx
add edx, 7
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x2d], dl
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x8c]
mov dword [eax + 0x34], ecx
cmp dword [ebp - 0x90], 0xa6
je 0x4765b5
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x2c]
add eax, 1
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0x7b
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d6c0
add esp, 0x10
mov ecx, dword [ebp - 0x48]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00448990
add esp, 0x10
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d5d0
add esp, 0x14
push 0x53
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042dec0
add esp, 8
jmp 0x477954
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x24]
and edx, 0x200
je 0x477030
mov eax, dword [ebp - 0x28]
mov cx, word [eax + 0x18]
mov word [ebp - 0xd0], cx
mov edx, dword [ebp - 0x28]
mov ax, word [edx + 0x1a]
mov word [ebp - 0xec], ax
mov ecx, dword [ebp - 0x28]
mov dx, word [ecx + 0x1c]
mov word [ebp - 0xd8], dx
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xbc], 0
mov byte [ebp - 0xd1], 0
mov byte [ebp - 0xdd], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x2c]
and edx, 1
je 0x47667b
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0x2f]
test ecx, ecx
jle 0x47667b
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x32]
movzx ecx, word [ebp - 0xd0]
cmp eax, ecx
jle 0x47667b
mov byte [ebp - 0xd1], 1
mov dword [ebp - 0xb8], 1
movzx edx, word [ebp - 0xd0]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x24]
and ecx, 0x20
je 0x4766e1
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0x54]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx + 0x1a]
cmp dword [ebp - 0xb8], edx
jle 0x4766c8
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x1cc], eax
jmp 0x4766d5
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx + 0x1a]
mov dword [ebp - 0x1cc], edx
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x24]
and edx, 0x10
je 0x476816
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0x54]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + 0x1c]
cmp dword [ebp - 0xb8], eax
jle 0x476728
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x1d0], ecx
jmp 0x476735
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + 0x1c]
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xc8]
movzx eax, word [edx + 0xa]
and eax, 0x100
je 0x4767ce
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x24]
push edx
push 1
push 0x43
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d6c0
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042dcc0
add esp, 4
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x24]
shl ecx, 1
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x24], ecx
movzx eax, word [ebp - 0xd0]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x1c]
movzx eax, byte [edx + eax]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
or eax, dword [ecx + 0x24]
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x24], eax
cmp dword [ebp - 0xdc], 0
jne 0x476816
movzx eax, word [ebp - 0xd0]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
movsx eax, word [edx + eax*2]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x476809
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x54]
shl eax, 4
mov ecx, dword [edx + 4]
movzx edx, byte [ecx + eax + 0xc]
test edx, edx
je 0x47680f
cmp dword [ebp - 0x54], 0xfffffffe
jne 0x476816
mov byte [ebp - 0xd1], 1
movzx eax, word [ebp - 0xd0]
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x32]
cmp eax, edx
jge 0x476845
movzx eax, word [ebp - 0xd0]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x1c]
movzx eax, byte [edx + eax]
neg eax
sbb eax, eax
add eax, 1
cmp dword [ebp - 0x1c], eax
je 0x476861
cmp dword [ebp - 0x1c], 0
je 0x4768d2
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x32]
movzx eax, word [ebp - 0xd0]
cmp edx, eax
jne 0x4768d2
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xdc], eax
mov cl, byte [ebp - 0xd1]
mov byte [ebp - 0xf1], cl
mov dl, byte [ebp - 0xdd]
mov byte [ebp - 0xd1], dl
mov al, byte [ebp - 0xf1]
mov byte [ebp - 0xdd], al
mov cl, byte [ebp - 0xec]
mov byte [ebp - 0xf2], cl
mov dx, word [ebp - 0xd8]
mov word [ebp - 0xec], dx
movzx ax, byte [ebp - 0xf2]
mov word [ebp - 0xd8], ax
lea ecx, [ebp - 0xcc]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004755e0
add esp, 0x14
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xcc], 0
je 0x47692e
movzx eax, word [ebp - 0xd8]
test eax, eax
je 0x47692e
movzx ecx, word [ebp - 0xd0]
add ecx, dword [ebp - 0xcc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00407a50
add esp, 8
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xdc], 0
je 0x47695b
mov edx, dword [ebp - 0xdc]
movzx eax, word [edx + 0xc]
and eax, 0x28
jne 0x47695b
mov dword [ebp - 0x1d4], 0
jmp 0x476965
mov dword [ebp - 0x1d4], 1
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xc8], 0
je 0x476995
mov edx, dword [ebp - 0xc8]
movzx eax, word [edx + 0xc]
and eax, 0x28
jne 0x476995
mov dword [ebp - 0x1d8], 0
jmp 0x47699f
mov dword [ebp - 0x1d8], 1
mov ecx, dword [ebp - 0x1d8]
mov dword [ebp - 0xe4], ecx
cmp dword [ebp - 0xdc], 0
jne 0x4769cb
movzx edx, word [ebp - 0xd0]
test edx, edx
jg 0x4769cb
mov dword [ebp - 0x1dc], 0
jmp 0x4769d5
mov dword [ebp - 0x1dc], 1
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0xc0], eax
movzx ecx, word [ebp - 0xd0]
mov dword [ebp - 0xb0], ecx
cmp dword [ebp - 0xdc], 0
je 0x476b0a
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xf8], ecx
movzx edx, word [ebp - 0xec]
push edx
movzx eax, word [ebp - 0xd0]
add eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0xf8]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00475a10
add esp, 0x10
mov eax, dword [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004758b0
add esp, 0xc
mov eax, dword [ebp - 0xdc]
movzx ecx, word [eax + 0xa]
and ecx, 0
jne 0x476a8e
mov edx, dword [ebp - 0xf8]
push edx
call fcn.00446d70
add esp, 4
test eax, eax
je 0x476a8e
mov eax, dword [ebp - 0xc]
push eax
movzx ecx, word [ebp - 0xd0]
add ecx, dword [ebp - 0xb4]
push ecx
push 0x32
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d6c0
add esp, 0x10
cmp dword [ebp - 0xcc], 0
je 0x476abc
movzx eax, word [ebp - 0xd0]
add eax, dword [ebp - 0xcc]
push eax
movzx ecx, word [ebp - 0xec]
push ecx
mov edx, dword [ebp - 0xf8]
push edx
call fcn.00474fa0
add esp, 0xc
movzx eax, word [ebp - 0xec]
add eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xf8]
push ecx
call fcn.004449d0
add esp, 4
test eax, eax
jne 0x476af7
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.00474e00
add esp, 8
jmp 0x476b01
mov dword [ebp - 0xac], 1
mov byte [ebp - 0xd1], 0
jmp 0x476b56
movzx ecx, byte [ebp - 0xd1]
test ecx, ecx
je 0x476b56
movzx edx, word [ebp - 0xd0]
add edx, dword [ebp - 0xb4]
push edx
push 0
push 0x46
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d6c0
add esp, 0x10
mov ecx, dword [ebp - 0xb0]
add ecx, 1
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xc0], 1
mov edx, dword [ebp - 0xcc]
push edx
movzx eax, byte [ebp - 0xd1]
mov ecx, dword [ebp - 0xb0]
sub ecx, eax
push ecx
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00474ef0
add esp, 0x10
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx + 0x2a]
test edx, edx
jle 0x476b9c
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax + 0x2a]
cmp dword [ebp - 0xb0], ecx
jne 0x476b9c
jmp 0x476be8
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx*2]
mov edx, dword [ebp - 0xc0]
movzx eax, byte [ecx + edx*4 + 0x4a7fa8]
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d920
add esp, 0x18
movzx ecx, word [ebp - 0xd0]
mov dword [ebp - 0xb0], ecx
cmp dword [ebp - 0xc8], 0
je 0x476d48
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xfc], ecx
push 1
movzx edx, word [ebp - 0xd0]
add edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00448aa0
add esp, 0xc
movzx ecx, word [ebp - 0xd8]
push ecx
movzx edx, word [ebp - 0xd0]
add edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xfc]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00475a10
add esp, 0x10
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004758b0
add esp, 0xc
mov edx, dword [ebp - 0xc8]
movzx eax, word [edx + 0xa]
and eax, 0
jne 0x476cb1
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.00446d70
add esp, 4
test eax, eax
je 0x476cb1
mov edx, dword [ebp - 0xc]
push edx
movzx eax, word [ebp - 0xd0]
add eax, dword [ebp - 0xb4]
push eax
push 0x32
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d6c0
add esp, 0x10
cmp dword [ebp - 0xbc], 0
je 0x476d01
mov edx, dword [ebp - 0xbc]
push edx
movzx eax, word [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.00474fa0
add esp, 0xc
mov edx, dword [ebp - 0xbc]
push edx
movzx eax, word [ebp - 0xd8]
push eax
movzx ecx, word [ebp - 0xd0]
add ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00474ef0
add esp, 0x10
movzx eax, word [ebp - 0xd8]
add eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.004449d0
add esp, 4
test eax, eax
jne 0x476d3c
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.00474e00
add esp, 8
jmp 0x476d46
mov dword [ebp - 0xe4], 1
jmp 0x476d8a
movzx ecx, byte [ebp - 0xdd]
test ecx, ecx
je 0x476d8a
movzx edx, word [ebp - 0xd0]
add edx, dword [ebp - 0xb4]
push edx
push 0
push 0x46
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d6c0
add esp, 0x10
mov dword [ebp - 0xe4], 0
mov ecx, dword [ebp - 0xb0]
add ecx, 1
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004074a0
add esp, 8
mov ecx, dword [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004074a0
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042dcc0
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x34], eax
cmp dword [ebp - 0xb0], 0
je 0x476e0e
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xe4]
movzx ecx, byte [eax + edx*2 + str.___a]
mov dword [ebp - 0xe8], ecx
mov edx, dword [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d920
add esp, 0x18
cmp dword [ebp - 0x44], 0
je 0x476e19
jmp 0x476fa1
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x24]
and ecx, 0x20
jne 0x476ed8
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x2c]
and eax, 0x400
jne 0x476e54
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x2c]
and edx, 0x1000
je 0x476eb8
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x31]
cmp ecx, 1
jne 0x476eb8
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x2c]
add eax, 1
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
push 0x82
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d6c0
add esp, 0x10
mov ecx, dword [ebp - 0x48]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00448990
add esp, 0x10
mov ecx, dword [ebp - 0x48]
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
push 0x20
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d5d0
add esp, 0x14
jmp 0x476ed3
mov ecx, dword [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00475900
add esp, 0x10
jmp 0x476fa1
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0xc4]
je 0x476fa1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00450810
add esp, 4
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
movzx eax, word [edx + 0x32]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0044bee0
add esp, 8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], 0
jmp 0x476f28
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x100]
movzx ecx, word [eax + 0x32]
cmp dword [ebp - 0x54], ecx
jge 0x476f7c
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x54]
movzx edx, word [eax + ecx*2]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00450850
add esp, 8
movsx ecx, ax
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
push 0x60
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d5d0
add esp, 0x14
jmp 0x476f1f
mov eax, dword [ebp - 0x100]
movzx ecx, word [eax + 0x32]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x1d
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d920
add esp, 0x18
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00475b60
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x24]
and edx, 0x1000
je 0x476fd3
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x2d], 0xa6
jmp 0x476fe9
cmp dword [ebp - 0x1c], 0
je 0x476fe2
mov ecx, dword [ebp - 0x50]
mov byte [ecx + 0x2d], 6
jmp 0x476fe9
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x2d], 7
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc4]
mov dword [eax + 0x30], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x24]
and eax, 0x10000
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx + 0x2e], al
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x24]
and eax, 0xf
jne 0x47701e
mov ecx, dword [ebp - 0x50]
mov byte [ecx + 0x2f], 1
cmp dword [ebp - 0x44], 0
je 0x47702b
mov dword [ebp - 0x3c], 0
jmp 0x477954
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x24]
and eax, 0x2000
je 0x4778f6
mov dword [ebp - 0x12c], 0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x28]
add ecx, 1
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x110], 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d9b0
add esp, 4
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx + 0x2d], 0x3f
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x124]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x2e]
cmp edx, 1
jle 0x4771e1
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x2e]
sub ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x140]
imul edx, edx, 0x50
add edx, 0x58
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00407790
add esp, 0xc
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x47714a
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
jmp 0x477d07
mov edx, dword [ebp - 0x140]
add edx, 1
movzx eax, dl
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov edi, dword [ebp - 0x108]
add edi, 8
mov ecx, 0x14
mov esi, dword [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
add eax, 8
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x38], 1
jmp 0x4771a4
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x140]
jg 0x4771df
mov eax, dword [ebp - 0x38]
imul eax, eax, 0x50
mov ecx, dword [ebp - 0x50]
movzx esi, byte [ecx + eax + 0x2c]
imul esi, esi, 0x50
add esi, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x50
mov eax, dword [ebp - 0x108]
lea edi, [eax + edx + 8]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
jmp 0x47719b
jmp 0x4771ed
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x108], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x2c]
and ecx, 0x10
jne 0x4772bd
mov edx, dword [ebp - 0x114]
mov eax, dword [edx + 0x24]
and eax, 0x20
jne 0x47723f
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
push eax
push 0
push 0x46
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d6c0
add esp, 0x10
jmp 0x4772a2
mov edx, dword [ebp - 0x114]
push edx
call fcn.00450810
add esp, 4
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x28]
add eax, 1
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x144]
movzx eax, word [edx + 0x32]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
push 0x6c
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d6c0
add esp, 0x10
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0042e3e0
add esp, 8
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x2c]
add eax, 1
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x124]
push ecx
push 0
push 0x43
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d6c0
add esp, 0x10
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0xc], 1
jle 0x4773f7
mov dword [ebp - 0x148], 0
jmp 0x477302
mov ecx, dword [ebp - 0x148]
add ecx, 1
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x148]
cmp eax, dword [edx + 0xc]
jge 0x4773ce
mov ecx, dword [ebp - 0x148]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x14]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x148]
imul edx, edx, 0x30
mov eax, dword [ebp - 0x34]
add edx, dword [eax + 0x14]
cmp edx, dword [ebp - 0x20]
jne 0x477342
jmp 0x4772f3
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 4]
and edx, 1
je 0x477352
jmp 0x4772f3
mov eax, dword [ebp - 0x148]
imul eax, eax, 0x30
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x14]
movzx eax, word [edx + eax + 0xa]
and eax, 6
je 0x47736d
jmp 0x4772f3
mov ecx, dword [ebp - 0x148]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x14]
movzx ecx, word [eax + ecx + 0xc]
and ecx, 0x1fff
jne 0x47738e
jmp 0x4772f3
push 0
mov edx, dword [ebp - 0x14c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00445e20
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00445490
add esp, 0xc
mov dword [ebp - 0x118], eax
jmp 0x4772f3
cmp dword [ebp - 0x118], 0
je 0x4773f7
mov ecx, dword [ebp - 0x118]
push ecx
push 0
push 0x12c
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00445310
add esp, 0x10
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x2c]
and ecx, 0x400
or ecx, 0x20
mov word [ebp - 0x130], cx
mov dword [ebp - 0x11c], 0
jmp 0x477429
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [eax + 0xc]
jge 0x47782c
mov edx, dword [ebp - 0x11c]
imul edx, edx, 0x30
mov eax, dword [ebp - 0x128]
add edx, dword [eax + 0x14]
mov dword [ebp - 0x150], edx
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0x14]
cmp edx, dword [ebp - 0x2c]
je 0x47747a
mov eax, dword [ebp - 0x150]
movzx ecx, word [eax + 0xc]
and ecx, 0x400
je 0x477827
mov edx, dword [ebp - 0x150]
mov eax, dword [edx]
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x15c], 0
cmp dword [ebp - 0x118], 0
je 0x4774c4
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx + 4]
and edx, 1
jne 0x4774c4
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x154]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x154], edx
mov eax, dword [ebp - 0x134]
push eax
movzx ecx, word [ebp - 0x130]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004808d0
add esp, 0x1c
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x477827
push 0
mov edx, dword [ebp - 0x50]
movzx eax, byte [edx + 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x158]
add edx, 0x2f0
push edx
mov eax, dword [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00474a90
add esp, 0x18
mov dword [ebp - 0x160], eax
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x2c]
and eax, 0x10
jne 0x47774e
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx + 0xc]
sub edx, 1
cmp dword [ebp - 0x11c], edx
jne 0x477568
mov dword [ebp - 0x1e0], 0xffffffff
jmp 0x477574
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1e0]
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 0x114]
mov eax, dword [edx + 0x24]
and eax, 0x20
jne 0x4775e6
push 0
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00448d40
add esp, 0x18
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x16c]
push edx
mov eax, dword [ebp - 0x168]
push eax
push 0
mov ecx, dword [ebp - 0x138]
push ecx
push 0x2d
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d920
add esp, 0x18
mov dword [ebp - 0x15c], eax
jmp 0x47774e
mov eax, dword [ebp - 0x114]
push eax
call fcn.00450810
add esp, 4
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
movzx edx, word [ecx + 0x32]
mov dword [ebp - 0x174], edx
mov eax, dword [ebp - 0x174]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0044bee0
add esp, 8
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x170], 0
jmp 0x47763f
mov edx, dword [ebp - 0x170]
add edx, 1
mov dword [ebp - 0x170], edx
mov eax, dword [ebp - 0x170]
cmp eax, dword [ebp - 0x174]
jge 0x477693
mov ecx, dword [ebp - 0x178]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x170]
movsx ecx, word [edx + eax*2]
mov dword [ebp - 0x17c], ecx
mov edx, dword [ebp - 0x168]
add edx, dword [ebp - 0x170]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x17c]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00448e30
add esp, 0x14
jmp 0x477630
cmp dword [ebp - 0x16c], 0
je 0x4776c7
mov ecx, dword [ebp - 0x174]
push ecx
mov edx, dword [ebp - 0x168]
push edx
push 0
mov eax, dword [ebp - 0x138]
push eax
push 0x1e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d920
add esp, 0x18
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x16c], 0
jl 0x477734
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x174]
push eax
mov ecx, dword [ebp - 0x168]
push ecx
push 0x63
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d5d0
add esp, 0x14
mov eax, dword [ebp - 0x174]
push eax
mov ecx, dword [ebp - 0x168]
push ecx
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x138]
push eax
push 0x7f
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d920
add esp, 0x18
cmp dword [ebp - 0x16c], 0
je 0x477734
push 0x10
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042dec0
add esp, 8
mov eax, dword [ebp - 0x174]
push eax
mov ecx, dword [ebp - 0x168]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0044bf60
add esp, 0xc
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
push 0xe
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d6c0
add esp, 0x10
cmp dword [ebp - 0x15c], 0
je 0x477786
mov eax, dword [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042def0
add esp, 8
mov edx, dword [ebp - 0x158]
movzx eax, byte [edx + 0x32]
test eax, eax
je 0x47779e
mov dword [ebp - 0x104], 1
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x330]
mov dword [ebp - 0x164], edx
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax + 0x24]
and ecx, 0x200
je 0x47780e
cmp dword [ebp - 0x11c], 0
je 0x4777db
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 0x20]
cmp eax, dword [ebp - 0x12c]
jne 0x47780e
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx + 0x24]
and edx, 0x20
je 0x4777fd
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x38]
and edx, 3
cmp edx, 2
je 0x47780e
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x12c], ecx
jmp 0x477818
mov dword [ebp - 0x12c], 0
mov edx, dword [ebp - 0x158]
push edx
call fcn.004814b0
add esp, 4
jmp 0x47741a
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x12c]
mov dword [eax + 0x38], ecx
cmp dword [ebp - 0x12c], 0
je 0x47784d
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x134]
mov dword [edx + 8], eax
cmp dword [ebp - 0x118], 0
je 0x477876
mov ecx, dword [ebp - 0x118]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004458b0
add esp, 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042dcc0
add esp, 4
push eax
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042de60
add esp, 0xc
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d6e0
add esp, 8
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042da30
add esp, 8
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x2e]
cmp ecx, 1
jle 0x4778db
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004074a0
add esp, 8
cmp dword [ebp - 0x104], 0
jne 0x4778f4
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.00474e00
add esp, 8
jmp 0x477954
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x28]
shr ecx, 5
and ecx, 1
je 0x47790d
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x2d], 0xa6
jmp 0x477954
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + 0x4a7fb4]
mov byte [eax + 0x2d], dl
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x30], ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + 0x4a7fb8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d6c0
add esp, 0x10
add eax, 1
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x2f], 1
mov eax, dword [ebp - 0x3c]
neg eax
sbb eax, eax
add eax, 2
mov dword [ebp - 4], eax
mov dword [ebp - 0x180], 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x54], ecx
jmp 0x477991
mov edx, dword [ebp - 0x54]
sub edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x20]
add eax, 0x30
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x54], 0
jle 0x477b01
mov dword [ebp - 0x184], 0
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + 0xa]
and edx, 6
je 0x4779b3
jmp 0x47797f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + 0x28]
and edx, dword [ecx + 0x48]
mov eax, dword [eax + 0x2c]
and eax, dword [ecx + 0x4c]
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp - 0x1e8]
or ecx, dword [ebp - 0x1e4]
je 0x4779e8
mov edx, dword [ebp + 8]
mov byte [edx + 0x32], 1
jmp 0x47797f
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x188], ecx
mov edx, dword [ebp - 0x50]
cmp dword [edx], 0
je 0x477a0e
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 4]
and ecx, 1
jne 0x477a0e
jmp 0x47797f
cmp dword [ebp - 4], 1
jne 0x477a41
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call fcn.0044b740
add esp, 0xc
test eax, eax
jne 0x477a41
mov dword [ebp - 0x180], 2
jmp 0x47797f
cmp dword [ebp - 4], 3
jge 0x477a6e
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 0xa]
and ecx, 0x1000
je 0x477a6e
cmp dword [ebp - 0x180], 0
jne 0x477a69
mov dword [ebp - 0x180], 3
jmp 0x47797f
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + 0xa]
and eax, 0x200
je 0x477ab6
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x18c], edx
mov eax, dword [ebp - 0x18c]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x18c]
and ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 0x15
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d6a0
add esp, 0xc
mov dword [ebp - 0x184], eax
push 0x10
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0044acb0
add esp, 0x10
cmp dword [ebp - 0x184], 0
je 0x477aeb
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042def0
add esp, 8
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + 0xa]
or eax, 4
mov ecx, dword [ebp - 0x20]
mov word [ecx + 0xa], ax
jmp 0x47797f
mov edx, dword [ebp - 0x180]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jg 0x477961
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x54], eax
jmp 0x477b3a
mov ecx, dword [ebp - 0x54]
sub ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x20]
add edx, 0x30
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x54], 0
jle 0x477c25
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 0xa]
and ecx, 6
je 0x477b52
jmp 0x477b28
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + 0xc]
and eax, 0x82
jne 0x477b62
jmp 0x477b28
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + 0xc]
and edx, 0x800
jne 0x477b73
jmp 0x477b28
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [ebp - 0x2c]
je 0x477b80
jmp 0x477b28
mov edx, dword [ebp - 0x50]
cmp dword [edx], 0
je 0x477b8a
jmp 0x477b28
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x1c4], ecx
push 0
push 0x83
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0047ad60
add esp, 0x1c
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
jne 0x477bcf
jmp 0x477b28
mov edx, dword [ebp - 0x190]
movzx eax, word [edx + 0xa]
and eax, 4
je 0x477be3
jmp 0x477b28
mov ecx, dword [ebp - 0x190]
mov esi, dword [ecx]
mov ecx, 0xc
lea edi, [ebp - 0x1c0]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x1c4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1b4], eax
push 0x10
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c0]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0044acb0
add esp, 0x10
jmp 0x477b28
mov ecx, dword [ebp - 0x50]
cmp dword [ecx], 0
je 0x477cfe
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042dcc0
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
push eax
push 1
push 0x43
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d6c0
add esp, 0x10
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00448e80
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x54], 0
jmp 0x477c89
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x20]
add eax, 0x30
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x54]
cmp edx, dword [ecx + 0xc]
jge 0x477cfe
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 0xa]
and ecx, 6
je 0x477ca2
jmp 0x477c77
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x50]
mov ecx, dword [edx + 0x28]
and ecx, dword [eax + 0x48]
mov edx, dword [edx + 0x2c]
and edx, dword [eax + 0x4c]
mov dword [ebp - 0x1f0], ecx
mov dword [ebp - 0x1ec], edx
mov eax, dword [ebp - 0x1f0]
or eax, dword [ebp - 0x1ec]
je 0x477cd0
jmp 0x477c77
push 0x10
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0044acb0
add esp, 0x10
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + 0xa]
or eax, 4
mov ecx, dword [ebp - 0x20]
mov word [ecx + 0xa], ax
jmp 0x477c77
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x48]
mov edx, dword [edx + 0x4c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret