Function at 0x47083a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
mov esi, ecx
imul ebx, edx, 0x50
xor eax, eax
mov dword [ebp - 0x3c], esi
push edi
mov dword [ebp - 0x80], eax
mov edi, dword [esi]
mov dword [ebp - 0x30], eax
add ebx, 0x2f0
add ebx, esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x6c], edi
mov eax, dword [edi + 8]
mov dword [ebp - 4], eax
lea eax, [esi + 0x50]
mov esi, dword [esi + 4]
mov dword [ebp - 0x74], eax
add esi, 8
mov eax, dword [edi]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x18], eax
movzx eax, byte [ebx + 0x2c]
imul ecx, eax, 0x50
mov dword [ebp - 0x40], ebx
add esi, ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x1e8
mov dword [ebp - 0x34], esi
mov eax, dword [esi + 0x30]
mov edx, eax
mov dword [ebp - 0x2c], eax
call fcn.004735c8
mov ecx, dword [ebp - 0x3c]
not eax
and eax, dword [ebp + 8]
not edx
and edx, dword [ebp + 0xc]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], edx
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp - 0x14]
call fcn.004f3cb0
xor ecx, ecx
inc ecx
and eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
push 0x20
pop edx
test byte [eax + 0x24], 0x40
je 0x4708ea
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x2c], dl
jne 0x4708ea
mov dword [ebp - 0x20], ecx
jmp 0x4708ee
and dword [ebp - 0x20], 0
mov ecx, dword [ebp - 4]
call fcn.00443528
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
call fcn.00443528
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x7c], eax
mov dword [ebx + 0x18], eax
jbe 0x470932
test byte [esi + 0x24], 8
je 0x470932
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 4]
inc eax
push eax
push 0
push 0x38
mov dword [edi + 0x2c], eax
pop edx
mov dword [ebx], eax
call fcn.0044337d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, ecx
test ecx, ecx
jle 0x47094b
mov ecx, ebx
cmp dword [ecx], edx
jne 0x47094b
dec eax
sub ecx, 0x50
test eax, eax
jg 0x47093f
mov ecx, dword [ebp - 0x3c]
imul eax, eax, 0x50
mov eax, dword [eax + ecx + 0x2fc]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x78], eax
test al, 0x10
je 0x470999
mov eax, dword [ebp - 0x34]
mov esi, dword [esi + 0x1c]
mov ecx, dword [ebp - 4]
push dword [eax + 0x18]
push edx
push esi
push 0xf
pop edx
call fcn.004432f9
mov ecx, dword [ebp - 4]
add esp, 0xc
push dword [ebp - 0x5c]
push esi
push 0x10
pop edx
call fcn.0044337d
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x2d], 0xd
jmp 0x4719a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x24]
test eax, 0x400
je 0x470ba0
movzx eax, word [ecx + 0x28]
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.00453659
lea edx, [eax + 2]
call fcn.0045560c
mov ecx, eax
xor esi, esi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x14], esi
jbe 0x470a1d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + esi*4]
test edx, edx
je 0x470a17
lea eax, [ecx + 2]
xor ecx, ecx
inc ecx
add eax, esi
test byte [edx + 0xc], cl
je 0x470a04
push eax
push dword [ebp - 0x38]
mov ecx, edi
push esi
push ebx
call fcn.0047001b
mov eax, dword [ebx + 0x10]
add esp, 0x10
mov dword [ebp - 0x20], eax
jmp 0x470a14
mov edx, dword [edx]
push ecx
push eax
mov ecx, edi
mov edx, dword [edx + 0x10]
call fcn.004706f0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x4709d2
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 4]
push dword [eax + 0x18]
push 0x38
pop edx
call fcn.0044337d
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
inc eax
mov ecx, dword [ebp - 4]
push eax
push esi
push 0x38
pop edx
call fcn.0044337d
mov ecx, dword [ebp - 0x18]
xor eax, eax
cmp byte [ecx + 0x1c], al
setne al
sub eax, 2
push eax
push dword [ecx + 0x20]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push 0xb
pop eax
mov edx, eax
call fcn.00443422
mov edx, dword [ebp - 0x18]
add esp, 0x24
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
mov byte [edx + 0x1c], 0
mov dword [ebx + 0x30], eax
cmp byte [ecx + 0x31], 0
push 0x32
pop eax
lea ecx, [eax + 0x72]
cmovne eax, ecx
mov ecx, dword [ebp - 4]
mov byte [ebx + 0x2d], al
call fcn.004436d4
lea ecx, [esi - 1]
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 8], ecx
test ecx, ecx
js 0x470b94
imul esi, eax, 0xc
mov dword [ebp - 0x14], esi
mov eax, dword [edx + 0x30]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
cmp ecx, 0x10
jge 0x470ade
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 0x1e]
shr ax, cl
xor ecx, ecx
inc ecx
test cl, al
je 0x470adb
mov ecx, ebx
call fcn.0046fef4
jmp 0x470b82
mov ecx, dword [ebp - 8]
xor eax, eax
inc eax
test byte [edx + 0xc], al
je 0x470b85
mov eax, dword [ebp - 0x60]
cmp byte [eax + 0x45], 0
jne 0x470b1c
mov edx, dword [ebx + 0x3c]
sub esi, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov edx, dword [edx + esi + 4]
call fcn.00443adb
push dword [eax + 0xc]
movzx edx, byte [eax]
push dword [eax + 8]
push dword [eax + 4]
call fcn.004432f9
add esp, 0xc
xor eax, eax
mov ecx, edi
push eax
push eax
push 0x4e
pop edx
call fcn.004512d5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x470b7f
mov ecx, dword [ebp - 0x10]
mov edx, 0x9d
push 0
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x60]
call fcn.0045124c
mov dword [esi + 0x10], eax
pop ecx
test eax, eax
je 0x470b71
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
add edx, 2
add ecx, edx
push 0
mov dword [eax + 0x1c], ecx
push dword [ebx + 0x18]
push esi
push edi
call fcn.00454c2f
add esp, 0x10
mov ecx, dword [ebp - 0x60]
mov edx, esi
and dword [esi + 0xc], 0
call fcn.00451658
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 8], ecx
jns 0x470ab0
mov ecx, edi
call fcn.0045365d
jmp 0x4719a6
test al, 5
setne cl
bt eax, 8
setb al
test al, cl
mov eax, dword [ebp - 0x18]
je 0x470c1b
mov eax, dword [eax + 0x30]
mov ecx, edi
mov edx, dword [eax]
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
push 0
push ebx
call fcn.0047001b
mov edx, dword [ebp - 0x10]
mov esi, eax
add esp, 0x10
cmp esi, edx
je 0x470be2
mov ecx, edi
call fcn.004555c9
mov ecx, dword [ebp - 4]
push esi
push dword [ebx + 0x10]
push dword [ebp - 0x2c]
push 0x1f
pop edx
call fcn.004432f9
add esp, 0xc
xor eax, eax
inc eax
mov edx, esi
mov ecx, edi
push eax
call fcn.004538b1
mov edx, dword [ebp - 0x2c]
pop ecx
push esi
push 0xffffffffffffffff
mov ecx, edi
call fcn.0045356c
mov byte [ebx + 0x2d], 0xa4
jmp 0x4719a4
mov ecx, dword [eax + 0x24]
mov eax, ecx
and eax, 0x102
cmp eax, 0x102
jne 0x470e2c
push 0x20
pop eax
mov dword [ebp - 0x40], 0xa4
mov esi, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x50], edx
test al, cl
je 0x470c57
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], 4
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
jmp 0x470c5d
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x50]
test cl, 0x10
je 0x470c6e
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
mov esi, dword [esi + eax]
mov ecx, dword [ebp - 0x38]
mov eax, edx
test ecx, ecx
cmove eax, esi
cmove esi, edx
mov dword [ebp - 0x58], eax
test esi, esi
je 0x470d24
mov edx, dword [esi]
mov dword [ebp - 8], 0x1a18191b
mov dword [ebp - 0x20], edx
mov ecx, dword [edx + 0x10]
call fcn.00450db1
mov ecx, edi
test eax, eax
je 0x470ccd
call fcn.004555aa
mov edx, dword [edx + 0x10]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x14], esi
inc eax
push eax
push esi
call fcn.004706f0
mov edx, dword [ebp - 0x20]
xor eax, eax
pop ecx
pop ecx
inc eax
movzx ecx, byte [edx]
sub ecx, 0x4f
or ecx, eax
mov al, byte [ebp + ecx - 8]
jmp 0x470cf3
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x50]
push eax
call fcn.00454653
pop ecx
mov edx, esi
mov dword [ebp - 0x14], eax
mov ecx, ebx
call fcn.0046fef4
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x50]
movzx ecx, byte [edx]
mov al, byte [ebp + ecx - 0x57]
push dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x5c]
movzx edx, al
push dword [ebp - 0x2c]
call fcn.004432f9
mov edx, dword [ebp - 0x14]
add esp, 0xc
xor eax, eax
mov ecx, edi
inc eax
push eax
call fcn.004538b1
pop ecx
mov edx, esi
mov ecx, edi
call fcn.004555c9
jmp 0x470d42
push dword [ebp - 0x10]
xor eax, eax
mov edx, ecx
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
inc eax
xor edx, eax
lea edx, [edx*4 + 0x21]
call fcn.0044337d
pop ecx
pop ecx
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x470dbc
mov eax, dword [esi]
xor edx, edx
inc dword [edi + 0x2c]
inc edx
mov ecx, dword [edi + 0x2c]
push edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x34], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.004706f0
mov edx, dword [ebp - 0x10]
pop ecx
pop ecx
mov eax, dword [edx + 0x10]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00450db1
test eax, eax
jne 0x470d9a
mov al, byte [edx]
cmp al, 0x51
je 0x470d86
cmp al, 0x4f
jne 0x470d9a
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc ecx
xor eax, ecx
lea edx, [eax*2 + 0x50]
mov dword [ebp - 0x40], edx
jmp 0x470da7
mov eax, dword [ebp - 0x38]
lea eax, [eax*2 + 0x4f]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x10]
call fcn.00450db1
test eax, eax
jne 0x470dbc
mov edx, esi
mov ecx, ebx
call fcn.0046fef4
mov ecx, dword [ebp - 4]
call fcn.004436d4
cmp dword [ebp - 0x38], 0
mov dword [ebx + 0x34], eax
sete cl
add cl, 6
cmp dword [ebp - 0x40], 0xa4
mov byte [ebx + 0x2d], cl
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x30], ecx
je 0x4719a6
inc dword [edi + 0x2c]
mov esi, dword [edi + 0x2c]
push esi
push ecx
mov ecx, dword [ebp - 4]
push 0x7d
pop edx
call fcn.0044337d
mov edx, dword [ebp - 0x2c]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.0045356c
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
push esi
push dword [ebp - 0x5c]
push dword [ebp - 0x34]
call fcn.004432f9
mov ecx, dword [ebp - 4]
add esp, 0x1c
push 0x53
pop edx
call fcn.004437ff
jmp 0x4719a6
test ecx, 0x200
je 0x47144f
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x58], edx
movzx eax, word [esi + 0x18]
mov dword [ebp - 0x28], eax
movzx eax, word [esi + 0x1a]
mov dword [ebp - 0x64], eax
movzx eax, word [esi + 0x1c]
mov esi, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 9], dl
mov byte [ebp - 0x65], dl
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x2c], 1
je 0x470e97
cmp byte [eax + 0x2f], 0
mov eax, dword [ebp - 0x28]
jle 0x470e9a
mov edi, dword [ebp - 0x4c]
cmp word [edi + 0x32], ax
mov edi, dword [ebp - 0x6c]
jbe 0x470e9a
xor esi, esi
mov byte [ebp - 9], 1
inc esi
jmp 0x470e9a
mov eax, dword [ebp - 0x28]
movzx eax, ax
push 0x20
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], eax
pop eax
test al, cl
je 0x470ecb
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
inc dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + edi*4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
movzx eax, word [edi + 0x1a]
mov edi, dword [ebp - 0x6c]
cmp esi, eax
cmovbe esi, eax
test cl, 0x10
je 0x470f8c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
movzx eax, word [ecx + 0x1c]
mov ecx, dword [ebp - 0x48]
cmp esi, eax
cmova eax, esi
mov esi, 0x100
mov dword [ebp - 0x14], eax
test word [ecx + 0xa], si
je 0x470f47
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 4]
inc eax
push eax
mov dword [edi + 0x2c], eax
mov dword [ebx + 0x24], eax
xor eax, eax
inc eax
push eax
push 0x38
pop edx
call fcn.0044337d
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.004436d4
shl dword [ebx + 0x24], 1
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x1c]
cmp byte [edx + eax], 1
mov eax, dword [ebp - 0x14]
sete cl
xor ecx, dword [ebp - 0x38]
or dword [ebx + 0x24], ecx
xor edx, edx
cmp dword [ebp - 0x54], 0
mov esi, eax
jne 0x470f8c
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + 4]
movsx ecx, word [eax + ecx*2]
mov dword [ebp - 0x10], ecx
test ecx, ecx
js 0x470f75
mov eax, dword [esi + 0xc]
add ecx, ecx
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], 0
je 0x470f81
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 0xfffffffe
jne 0x470f8c
jmp 0x470f84
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov esi, eax
inc ecx
mov byte [ebp - 9], cl
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x28]
movzx eax, word [eax + 0x32]
mov dword [ebp - 0x10], eax
cmp cx, ax
jae 0x470fbd
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov edi, dword [ebp - 0x30]
mov eax, dword [eax + 0x1c]
cmp byte [edi + eax], cl
mov edi, dword [ebp - 0x6c]
sete cl
cmp dword [ebp - 0x38], ecx
je 0x470fc8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x38], 0
je 0x470fef
cmp ax, cx
jne 0x470fef
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x54], eax
mov al, byte [ebp - 9]
mov byte [ebp - 0x65], al
mov eax, dword [ebp - 0x64]
mov byte [ebp - 9], dl
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x48], ecx
movzx ecx, dx
movzx eax, al
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x70]
mov edx, ebx
push eax
push esi
push dword [ebp - 0x38]
mov ecx, edi
call fcn.0047041a
mov esi, dword [ebp - 0x30]
mov edx, eax
mov eax, dword [ebp - 0x70]
add esp, 0xc
mov dword [ebp - 8], edx
test eax, eax
je 0x47102a
cmp word [ebp - 0x24], 0
je 0x47102a
mov ecx, dword [ebp - 0x60]
lea edx, [esi + eax]
call fcn.0042c548
mov edx, dword [ebp - 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x471044
test byte [eax + 0xc], 0x28
jne 0x471044
xor ecx, ecx
mov dword [ebp - 0x44], ecx
jmp 0x47104c
xor ecx, ecx
inc ecx
mov dword [ebp - 0x44], ecx
xor ecx, ecx
cmp dword [ebp - 0x48], 0
mov edi, dword [ebp - 0x6c]
je 0x471064
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x14], ecx
test byte [ebx + 0xc], 0x28
mov ebx, dword [ebp - 0x40]
je 0x47106b
mov dword [ebp - 0x14], 1
test eax, eax
jne 0x4710b3
cmp word [ebp - 0x28], ax
ja 0x4710b3
mov dword [ebp - 0x34], ecx
mov al, byte [ebp - 9]
mov dword [ebp - 0x28], esi
test al, al
je 0x471159
lea eax, [esi + edx]
mov esi, dword [ebp - 4]
push eax
push ecx
push 0x3b
pop edx
mov ecx, esi
call fcn.0044337d
mov eax, dword [ebp - 0x30]
and dword [ebp - 0x44], 0
inc eax
mov dword [ebp - 0x28], eax
xor eax, eax
inc eax
pop ecx
mov dword [ebp - 0x34], eax
mov al, byte [ebp - 9]
pop ecx
jmp 0x47115c
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], esi
test eax, eax
je 0x471078
mov ecx, dword [ebp - 0x64]
mov eax, dword [eax]
movzx edx, cx
mov ecx, dword [ebp - 8]
add ecx, esi
mov eax, dword [eax + 0x10]
push edx
mov dword [ebp - 0x10], ecx
mov edx, eax
push ecx
mov ecx, edi
mov dword [ebp - 0x50], eax
call fcn.004706f0
push dword [ebp - 0x54]
mov esi, dword [ebp - 4]
mov edx, ebx
mov ecx, esi
call fcn.00470610
mov ecx, dword [ebp - 0x50]
add esp, 0xc
call fcn.004522af
test eax, eax
je 0x471112
push dword [ebp - 0x5c]
mov ecx, esi
push dword [ebp - 0x10]
push 0x4b
pop edx
call fcn.0044337d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x47112e
mov eax, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x64]
movzx edx, ax
call fcn.0046ffc9
pop ecx
mov ecx, dword [ebp - 0x64]
movzx eax, cx
mov ecx, dword [ebp - 0x50]
add dword [ebp - 0x28], eax
call fcn.00450db1
test eax, eax
jne 0x47114f
mov edx, dword [ebp - 0x54]
mov ecx, ebx
call fcn.0046fef4
jmp 0x471155
xor eax, eax
inc eax
mov dword [ebp - 0x44], eax
xor al, al
jmp 0x47115c
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x70]
mov edx, dword [ebp - 8]
movzx eax, al
sub ecx, eax
push ecx
mov ecx, edi
call fcn.0046ff6e
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
movzx eax, word [eax + 0x2a]
test ax, ax
je 0x471185
cmp dword [ebp - 0x28], eax
je 0x4711af
mov ecx, dword [ebp - 0x44]
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
push dword [ebp - 8]
push dword [ebp - 0x5c]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x1c]
movzx edx, byte [ecx + eax*2 + 0x502c24]
mov ecx, esi
call fcn.004434d9
add esp, 0x10
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x471270
mov eax, dword [eax]
xor ecx, ecx
inc ecx
push ecx
mov ecx, edi
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x34], eax
call fcn.00453613
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x44]
pop ecx
movzx eax, ax
mov ecx, edi
push eax
push dword [ebp - 0x34]
call fcn.004706f0
push dword [ebp - 0x48]
mov edx, ebx
mov ecx, esi
call fcn.00470610
mov ecx, dword [ebp - 0x44]
add esp, 0xc
call fcn.004522af
test eax, eax
je 0x47121a
push dword [ebp - 0x5c]
mov ecx, esi
push dword [ebp - 0x34]
push 0x4b
pop edx
call fcn.0044337d
pop ecx
pop ecx
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x471247
mov ecx, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x24]
movzx edx, ax
call fcn.0046ffc9
mov edx, dword [ebp - 0x34]
pop ecx
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x58]
movzx eax, cx
mov ecx, edi
push eax
call fcn.0046ff6e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
movzx eax, cx
mov ecx, dword [ebp - 0x44]
add dword [ebp - 0x30], eax
call fcn.00450db1
test eax, eax
jne 0x471268
mov edx, dword [ebp - 0x48]
mov ecx, ebx
call fcn.0046fef4
jmp 0x471292
xor eax, eax
inc eax
mov dword [ebp - 0x14], eax
jmp 0x471292
cmp byte [ebp - 0x65], 0
je 0x471292
mov eax, dword [ebp - 0x30]
mov ecx, esi
add eax, dword [ebp - 8]
push eax
push 0
push 0x3b
pop edx
call fcn.0044337d
and dword [ebp - 0x14], 0
inc dword [ebp - 0x30]
pop ecx
pop ecx
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x60]
call fcn.0042c1c6
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x60]
call fcn.0042c1c6
mov ecx, esi
call fcn.004436d4
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4712db
mov ecx, dword [ebp - 0x38]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x5c]
push dword [ebp - 0x1c]
movzx edx, byte [eax + ecx*2 + 0x5017d4]
mov ecx, esi
call fcn.004434d9
add esp, 0x10
cmp dword [ebp - 0x20], 0
jne 0x4713f2
mov edx, dword [ebp - 0x4c]
push 0x20
pop eax
mov ecx, dword [edx + 0xc]
test byte [ecx + 0x24], al
jne 0x471363
mov ecx, dword [ebp - 0x3c]
mov esi, 0x400
movzx eax, word [ecx + 0x2c]
test esi, eax
jne 0x471324
test eax, 0x1000
je 0x471312
xor eax, eax
inc eax
cmp byte [ecx + 0x31], al
je 0x471324
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call fcn.00470644
pop ecx
pop ecx
jmp 0x4713f2
inc dword [edi + 0x2c]
mov edx, 0x83
mov esi, dword [edi + 0x2c]
mov ecx, dword [ebp - 4]
push esi
push dword [ebp - 0x1c]
call fcn.0044337d
mov edx, dword [ebp - 0x2c]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.0045356c
mov ecx, dword [ebp - 4]
push esi
push 0
push dword [ebp - 0x2c]
push 0x20
pop eax
mov edx, eax
call fcn.004432f9
add esp, 0x1c
jmp 0x4713f2
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x1c]
je 0x4713f2
call fcn.00458431
mov ecx, edi
mov dword [ebp - 0x34], eax
movzx edx, word [eax + 0x32]
call fcn.0045560c
mov dword [ebp - 0x50], eax
xor esi, esi
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 0x32]
xor eax, eax
mov edx, ecx
cmp ax, cx
jae 0x4713d7
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 4]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x4c]
mov dx, word [eax + esi*2]
call fcn.00458449
movsx ecx, ax
mov eax, dword [ebp - 0x50]
add eax, esi
push eax
push ecx
push dword [ebp - 0x1c]
mov ecx, edi
push 0x63
pop edx
call fcn.004432f9
movzx ecx, word [ebx + 0x32]
add esp, 0xc
inc esi
cmp esi, ecx
jl 0x47139d
mov ebx, dword [ebp - 0x40]
mov edx, ecx
mov edi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 4]
movzx eax, dx
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x7c]
push dword [ebp - 0x2c]
push 0x1d
pop edx
call fcn.004434d9
add esp, 0x10
push dword [ebp - 0x3c]
mov esi, dword [ebp - 0x4c]
mov ecx, esi
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
call fcn.004707a9
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
test dword [ecx + 0x24], 0x1000
je 0x471419
mov byte [ebx + 0x2d], 0xa4
jmp 0x471425
cmp dword [ebp - 0x38], 0
sete al
add al, 6
mov byte [ebx + 0x2d], al
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebx + 0x30], eax
inc edx
mov al, byte [ecx + 0x26]
and al, dl
mov byte [ebx + 0x2e], al
test byte [ecx + 0x24], 0xf
jne 0x47143f
mov byte [ebx + 0x2f], dl
xor eax, eax
cmp dword [ebp - 0x20], eax
cmove eax, esi
mov dword [ebp - 0x30], eax
jmp 0x4719a6
test ecx, 0x2000
je 0x471967
mov eax, dword [edi + 0x28]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x38], eax
inc eax
inc dword [edi + 0x2c]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], edx
call fcn.00443528
mov ecx, dword [ebp - 0x18]
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov ecx, dword [ecx + 0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov ecx, dword [ecx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebp - 0x3c]
mov byte [ebx + 0x2d], 0x34
mov cl, byte [ecx + 0x2e]
cmp cl, 1
jbe 0x47157e
movzx ecx, cl
sub ecx, dword [ebp - 0x14]
dec ecx
mov dword [ebp - 0x20], ecx
imul ecx, ecx, 0x50
push eax
add ecx, 0x58
push ecx
mov ecx, dword [ebp - 0x60]
call fcn.0042c3c9
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x4714ea
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
jmp 0x471bca
mov al, byte [ebp - 0x20]
inc al
movzx eax, al
push 0x50
mov dword [ecx + 4], eax
mov dword [ecx], eax
lea eax, [ecx + 8]
push esi
push eax
call fcn.0049f810
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, 8
inc eax
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x20], eax
jl 0x47154e
mov esi, dword [ebp - 0x4c]
lea edi, [ebx + 0x7c]
mov ebx, dword [ebp - 0x20]
add esi, 0x58
movzx eax, byte [edi]
imul eax, eax, 0x50
push 0x50
add eax, ecx
push eax
push esi
call fcn.0049f810
mov ecx, dword [ebp - 0x58]
lea edi, [edi + 0x50]
add esp, 0xc
add esi, 0x50
sub ebx, 1
jne 0x471526
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov ecx, dword [ebp - 0x3c]
test byte [ecx + 0x2c], 0x10
jne 0x4715c3
push 0x20
pop ecx
test byte [edx + 0x24], cl
jne 0x471589
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
push ecx
push eax
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 4]
push 0x3b
pop edx
call fcn.0044337d
pop ecx
pop ecx
jmp 0x4715ba
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x4c], ecx
jmp 0x471553
mov ecx, edx
call fcn.00458431
mov esi, eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x64], eax
lea ecx, [eax + 1]
mov dword [edi + 0x28], ecx
movzx ecx, word [esi + 0x32]
push ecx
mov ecx, dword [ebp - 4]
push eax
push 0x6e
pop edx
call fcn.0044337d
pop ecx
pop ecx
mov edx, esi
mov ecx, edi
call fcn.00443ac0
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x34]
mov esi, dword [ebp - 4]
mov ecx, esi
push 0
push 0x38
pop edx
call fcn.0044337d
pop ecx
pop ecx
mov dword [ebp - 0x78], eax
xor ecx, ecx
mov eax, dword [ebp - 0x74]
inc ecx
cmp dword [eax + 0xc], ecx
jle 0x47167a
cmp dword [eax + 0xc], 0
jle 0x47167a
mov edx, dword [ebp - 0x24]
xor ebx, ebx
mov ecx, ebx
xor esi, esi
mov dword [ebp - 0x20], ecx
mov edi, ebx
mov eax, dword [eax + 0x14]
add eax, ecx
cmp eax, edx
je 0x471647
mov edx, dword [eax]
test byte [edx + 4], 1
jne 0x471644
test byte [eax + 0xa], 6
jne 0x471644
mov edi, 0x1fff
test word [eax + 0xc], di
mov edi, dword [ebp - 8]
je 0x471644
mov ecx, dword [ebp - 0x60]
push ebx
call fcn.0045199a
pop ecx
mov ecx, dword [ebp - 0x60]
mov edx, edi
push eax
call fcn.004513c5
pop ecx
mov ecx, dword [ebp - 0x20]
mov edi, eax
mov dword [ebp - 8], edi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x74]
inc esi
add ecx, 0x30
mov dword [ebp - 0x20], ecx
cmp esi, dword [eax + 0xc]
jl 0x471601
mov ebx, dword [ebp - 0x40]
test edi, edi
mov edi, dword [ebp - 0x6c]
mov esi, dword [ebp - 4]
je 0x47167a
mov ecx, dword [ebp - 8]
mov edx, 0x147
push ecx
push 0
mov ecx, edi
call fcn.004512d5
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
mov ecx, 0x400
mov edx, dword [ebp - 0x70]
push 0x20
mov ax, word [eax + 0x2c]
and ax, cx
pop ecx
or ax, cx
movzx eax, ax
mov dword [ebp - 0x18], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x44], ecx
cmp dword [edx + 0xc], eax
jle 0x4718f6
or dword [ebp - 0x84], 0xffffffff
mov esi, dword [ebp - 0x2c]
imul ecx, ecx, 0x30
add ecx, dword [edx + 0x14]
cmp dword [ecx + 0x14], esi
mov esi, dword [ebp - 4]
je 0x4716d2
mov esi, 0x400
test word [ecx + 0xc], si
mov esi, dword [ebp - 4]
je 0x4718e6
mov edx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], eax
test edx, edx
je 0x4716e9
test byte [ecx + 4], 1
jne 0x4716e9
mov dword [edx + 0xc], ecx
mov ecx, edx
push dword [ebp - 0x38]
mov edx, dword [ebp - 0x4c]
push dword [ebp - 0x18]
push eax
push eax
push ecx
mov ecx, edi
call fcn.0047732f
add esp, 0x14
mov dword [ebp - 0x90], eax
test eax, eax
je 0x4718e1
movzx ecx, byte [ebx + 0x2c]
mov edx, dword [ebp - 0x4c]
push 0
push ecx
push dword [ebp - 0x14]
lea ecx, [eax + 0x2f0]
push ecx
mov ecx, edi
call fcn.0046fc85
mov eax, dword [ebp - 0x3c]
add esp, 0x10
test byte [eax + 0x2c], 0x10
jne 0x471864
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x84]
push 0x20
mov eax, dword [eax + 0xc]
dec eax
cmp ecx, eax
mov eax, dword [ebp - 0x1c]
cmove ecx, edx
mov dword [ebp - 0x58], ecx
pop ecx
test byte [eax + 0x24], cl
jne 0x47178b
push 0
push dword [ebp - 0x5c]
mov ecx, edi
push dword [ebp - 0x2c]
push edx
mov edx, eax
call fcn.004537a6
push dword [ebp - 0x58]
mov ecx, esi
push eax
push 0
push dword [ebp - 0x64]
push 0x2b
pop edx
call fcn.004434d9
add esp, 0x20
mov dword [ebp - 0x20], eax
jmp 0x471864
mov ecx, eax
call fcn.00458431
mov ecx, edi
mov dword [ebp - 0x8c], eax
movzx edx, word [eax + 0x32]
mov dword [ebp - 0x28], edx
call fcn.0045560c
and dword [ebp - 0x88], 0
mov ecx, eax
mov dword [ebp - 0x54], ecx
test edx, edx
je 0x4717f0
mov ebx, dword [ebp - 0x88]
mov esi, edx
mov eax, dword [ebp - 0x8c]
add ecx, ebx
mov edx, dword [ebp - 0x1c]
push ecx
push dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov ecx, edi
movsx eax, word [eax + ebx*2]
push eax
call fcn.0045383e
mov ecx, dword [ebp - 0x54]
add esp, 0xc
inc ebx
cmp ebx, esi
jl 0x4717be
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x471813
push edx
push ecx
push 0
push dword [ebp - 0x64]
mov ecx, esi
push 0x1e
pop edx
call fcn.004434d9
mov dword [ebp - 0x20], eax
add esp, 0x10
mov eax, dword [ebp - 0x58]
test eax, eax
js 0x471856
push dword [ebp - 0x5c]
mov ecx, esi
push dword [ebp - 0x28]
push dword [ebp - 0x54]
push 0x65
pop edx
call fcn.004432f9
add esp, 0xc
mov edx, 0x80
mov ecx, esi
push dword [ebp - 0x28]
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
call fcn.004434d9
add esp, 0x10
cmp dword [ebp - 0x58], 0
je 0x471856
push 0x10
pop edx
mov ecx, esi
call fcn.004437ff
push dword [ebp - 0x28]
mov edx, dword [ebp - 0x54]
mov ecx, edi
call fcn.00455642
pop ecx
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x34]
push 0xe
pop edx
call fcn.0044337d
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
test eax, eax
je 0x471886
mov edx, eax
mov ecx, esi
call fcn.00443817
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x50]
push 1
pop ecx
cmp byte [edx + 0x32], 0
cmovne eax, ecx
mov ecx, dword [edx + 0x330]
mov dword [ebp - 0x50], eax
test dword [ecx + 0x24], 0x200
je 0x4718d6
cmp dword [ebp - 0x44], 0
je 0x4718b9
mov eax, dword [ebp - 0x48]
cmp dword [ecx + 0x20], eax
jne 0x4718d6
mov eax, dword [ebp - 0x1c]
test byte [eax + 0x24], 0x20
je 0x4718ce
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + 0x38]
and al, 3
cmp al, 2
je 0x4718d6
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x48], eax
jmp 0x4718da
and dword [ebp - 0x48], 0
mov ecx, edx
call fcn.00477b60
mov edx, dword [ebp - 0x70]
xor eax, eax
mov ecx, dword [ebp - 0x44]
inc ecx
mov dword [ebp - 0x44], ecx
cmp ecx, dword [edx + 0xc]
jl 0x4716af
mov ecx, dword [ebp - 0x48]
mov dword [ebx + 0x38], ecx
test ecx, ecx
je 0x471906
mov ecx, dword [ebp - 0x38]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x47191a
mov dword [ecx + 0xc], eax
mov edx, ecx
mov ecx, dword [ebp - 0x60]
call fcn.00451658
mov ecx, esi
call fcn.004436d4
mov edx, dword [ebp - 0x78]
push eax
call fcn.004437cf
mov edx, dword [ebx + 0xc]
pop ecx
mov ecx, esi
call fcn.00443392
mov edx, dword [ebp - 0x10]
mov ecx, esi
call fcn.0044356a
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
inc ecx
cmp byte [eax + 0x2e], cl
jbe 0x471955
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x60]
call fcn.0042c1c6
cmp dword [ebp - 0x50], 0
jne 0x4719a6
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.0046fef4
jmp 0x4719a6
push 0x20
pop eax
test byte [ebp - 0x78], al
je 0x471975
mov byte [ebx + 0x2d], 0xa4
jmp 0x4719a6
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x10]
mov al, byte [ecx + 0x5038b4]
movzx edx, byte [ecx + 0x501320]
mov ecx, dword [ebp - 4]
mov byte [ebx + 0x2d], al
mov eax, dword [ebp - 0x2c]
push eax
mov dword [ebx + 0x30], eax
call fcn.0044337d
inc eax
mov dword [ebx + 0x34], eax
xor eax, eax
inc eax
mov byte [ebx + 0x2f], al
pop ecx
pop ecx
mov eax, dword [ebp - 0x74]
mov edx, dword [eax + 0xc]
xor ecx, ecx
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x1c], edx
test edx, edx
jle 0x471a91
xor eax, eax
test byte [esi + 0xa], 6
mov dword [ebp - 0x10], eax
jne 0x471a73
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x48]
and eax, dword [ebx + 0x4c]
or ecx, eax
je 0x4719ec
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
inc ecx
mov byte [eax + 0x32], cl
jmp 0x471a73
cmp dword [ebx], 0
mov eax, dword [esi]
mov dword [ebp - 0x78], eax
je 0x4719fe
xor ecx, ecx
inc ecx
test byte [eax + 4], cl
je 0x471a73
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x471a20
mov edx, dword [ebx + 4]
push ecx
mov ecx, eax
call fcn.004551a5
pop ecx
test eax, eax
jne 0x471a20
mov edx, dword [ebp - 0x1c]
lea ecx, [eax + 1]
mov dword [ebp - 0x40], ecx
jmp 0x471a76
mov eax, 0x200
test word [esi + 0xa], ax
je 0x471a47
mov edx, dword [ebx + 0x24]
mov eax, edx
mov ecx, dword [ebp - 4]
shr eax, 1
push eax
xor eax, eax
inc eax
and edx, eax
add edx, 0x15
call fcn.00443369
pop ecx
mov dword [ebp - 0x10], eax
push 0x10
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push edi
call fcn.00454c2f
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
je 0x471a69
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.00443817
mov edx, dword [ebp - 0x1c]
push 4
pop eax
or word [esi + 0xa], ax
mov ecx, dword [ebp - 0x40]
dec edx
add esi, 0x30
mov dword [ebp - 0x1c], edx
test edx, edx
jg 0x4719bf
mov eax, dword [ebp - 0x74]
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x1c], edx
and dword [ebp - 0x30], 0
test ecx, ecx
jne 0x4719a9
test edx, edx
jle 0x471b51
add esi, 0xc
mov dword [ebp - 0x10], esi
test byte [esi - 2], 6
jne 0x471b3f
movzx eax, word [esi]
test al, 0x82
push 0xb
pop edi
setne cl
bt ax, di
mov edi, dword [ebp - 0x6c]
setb al
test al, cl
je 0x471b3f
mov ecx, dword [ebp - 0x2c]
cmp dword [esi + 8], ecx
jne 0x471b3f
cmp dword [ebx], 0
jne 0x471b3f
mov eax, dword [esi - 0xc]
mov edx, ecx
mov ecx, dword [ebp - 0x74]
push 0
push 0x83
push dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
push dword [ebp + 8]
push dword [esi + 0x10]
call fcn.004738a3
add esp, 0x14
test eax, eax
je 0x471b3c
test byte [eax + 0xa], 4
jne 0x471b3c
mov esi, dword [eax]
lea edi, [ebp - 0xc0]
mov eax, dword [ebp - 0x78]
push 0xc
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
mov edi, dword [ebp - 0x6c]
push 0x10
push dword [ebp - 0x7c]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xc0]
push eax
push edi
call fcn.00454c2f
mov esi, dword [ebp - 0x10]
add esp, 0x10
mov edx, dword [ebp - 0x1c]
dec edx
add esi, 0x30
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], esi
test edx, edx
jg 0x471aab
cmp dword [ebx], 0
je 0x471bc4
mov ecx, dword [ebp - 4]
call fcn.004436d4
push dword [ebx]
mov dword [ebx + 0x1c], eax
xor eax, eax
inc eax
push eax
push 0x38
pop edx
call fcn.0044337d
pop ecx
pop ecx
mov ecx, edi
call fcn.00453870
mov eax, dword [ebp - 0x74]
xor edx, edx
mov esi, dword [eax + 0x14]
cmp dword [eax + 0xc], edx
jle 0x471bc4
test byte [esi + 0xa], 6
jne 0x471bb8
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x48]
and eax, dword [ebx + 0x4c]
or ecx, eax
jne 0x471bb5
push 0x10
push dword [ebp - 0x7c]
push dword [esi]
push edi
call fcn.00454c2f
mov edx, dword [ebp - 0x80]
add esp, 0x10
push 4
pop eax
or word [esi + 0xa], ax
mov eax, dword [ebp - 0x74]
inc edx
add esi, 0x30
mov dword [ebp - 0x80], edx
cmp edx, dword [eax + 0xc]
jl 0x471b85
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 0x4c]
pop edi
pop esi
pop ebx
leave
ret