Function at 0x417790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xddc
mov eax, dword [0x449ea0]
push ebx
push ebp
push esi
push edi
xor esi, esi
mov edi, 1
cmp eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0xc8], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x38], esi
je 0x417851
mov eax, dword [0x44a964]
push str._B_n
push eax
call fcn.0041f590
add esp, 8
cmp dword [0x449f1c], esi
jne 0x41785e
call fcn.00415420
mov edx, dword [0x449f74]
mov ebp, dword [esp + 0xdf0]
inc edx
mov dword [0x449f74], edx
mov ecx, dword [ebp + 4]
mov dword [esp + 0xcc], ecx
call fcn.00415620
mov dword [esp + 0xd0], eax
call fcn.00412c60
cmp eax, edi
mov edi, dword [esp + 0xdf4]
mov dword [esp + 0xbc], eax
jne 0x4178a8
push edi
call fcn.004124f0
add esp, 4
call fcn.004197c0
mov edx, dword [0x44a8ac]
mov ebx, eax
mov eax, dword [edi + 0x104]
push edx
push eax
push 3
push ebp
mov dword [esp + 0x20], ebx
call fcn.004022e0
mov eax, dword [0x439620]
add esp, 0x10
cmp eax, esi
je 0x417921
mov edx, dword [edi + 0x104]
lea ecx, [esp + 0x80]
push ebx
push ecx
push esi
push esi
push edx
call fcn.004120d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4178fa
mov ebx, eax
mov dword [esp + 0x10], ebx
mov ecx, dword [edi + 0x104]
lea eax, [esp + 0x80]
push ebx
push eax
push 1
push 1
push ecx
call fcn.004120d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x417921
mov ebx, eax
mov dword [esp + 0x10], ebx
push esi
push esi
push ebx
push 1
push ebp
call fcn.00402780
add esp, 0x14
push edi
call fcn.0040da80
add esp, 4
push edi
call fcn.0041e290
mov eax, dword [0x449f10]
add esp, 4
cmp eax, esi
je 0x417954
push esi
push edi
call fcn.0040dfb0
add esp, 8
mov eax, dword [0x44a898]
mov edx, dword [ebp + 4]
mov ebx, dword [esp + 0xdfc]
mov edi, pe_nt_image_headers32
cmp eax, esi
mov eax, dword [esp + 0xdf8]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edx
jne 0x4179af
cmp dword [eax + 0x158], esi
jne 0x41799e
cmp eax, esi
je 0x41799e
push eax
call fcn.00417450
add esp, 4
cmp dword [ebx + 0x158], esi
jne 0x4179af
push ebx
call fcn.00417450
add esp, 4
mov eax, dword [0x449d50]
mov ecx, dword [0x449d54]
sar eax, 3
sar ecx, 3
lea edx, [eax - 2]
cmp ecx, esi
mov dword [esp + 0x68], edx
lea edx, [ecx - 2]
mov dword [esp + 0x98], eax
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x1c], esi
jle 0x418184
mov dword [esp + 0x3c], esi
jmp 0x4179fe
mov eax, dword [esp + 0x98]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x18], esi
jle 0x418158
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x3c]
cdq
idiv dword [0x44a8c0]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x9ec]
mov ebp, 0x10
lea edi, [eax*8]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0xdf4]
add esi, dword [edx + 0x11c]
xor eax, eax
mov edx, dword [esi]
xor ebx, ebx
add edx, edi
inc eax
add ecx, 4
cmp eax, 0x10
mov bl, byte [edx + eax - 1]
mov dword [ecx - 4], ebx
jl 0x417a4d
add esi, 4
dec ebp
jne 0x417a4b
mov eax, dword [esp + 0x7c]
xor edi, edi
cmp eax, edi
jne 0x417a8f
mov dword [esp + 0x40], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x64], 1
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa8]
cmp esi, ecx
jl 0x417aaa
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x68]
cmp ecx, edx
jge 0x417b12
mov ecx, dword [0x44a8c0]
lea edx, [eax + 1]
cmp edx, ecx
je 0x417b12
cmp eax, edi
je 0x417b12
cmp dword [esp + 0x64], edi
jne 0x417b12
cmp dword [0x433ed8], edi
je 0x417b12
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0xe0c]
push ecx
mov ecx, dword [esp + 0xe0c]
push edx
push esi
push eax
mov eax, dword [esp + 0xe14]
lea edx, [esp + 0xa0c]
push ecx
push edx
push eax
call fcn.0041a510
add esp, 0x2c
jmp 0x417b14
xor eax, eax
cmp eax, edi
jne case.0x417b64.0
cmp dword [0x439620], edi
je 0x417bef
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0xdf8]
lea edx, [esp + 0x84]
push edx
mov edx, dword [ecx + 0x104]
push eax
push 2
push edx
call fcn.004120d0
mov eax, dword [esp + 0x94]
add esp, 0x14
cmp eax, edi
je 0x417bef
mov ecx, dword [eax]
cmp ecx, 3
ja case.default.0x417b64
jmp dword [ecx*4 + 0x419794]
mov eax, dword [0x44a8bc]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x54]
mov ecx, dword [eax + esi*4]
mov esi, edx
mov byte [ecx + edx], 2
jmp 0x418124
mov ecx, dword [eax + 4]
xor ebx, ebx
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], ebx
jmp 0x417c3a
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x20], edx
jmp 0x417c36
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], 2
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x20], edx
jmp 0x417c36
push str.Unreachable_code_in_GenBFrame__n
push 0x435df8
call fcn.0041f590
add esp, 8
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xe10]
push edx
mov edx, dword [esp + 0xe10]
push eax
push ecx
lea eax, [esp + 0xa0c]
push edx
push eax
call fcn.0041b9a0
add esp, 0x28
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x34]
mov eax, dword [0x433ed4]
xor esi, esi
cmp eax, esi
je 0x417dfc
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0xdf4]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0xe08]
push ecx
mov ecx, dword [esp + 0xe08]
push ebx
push edx
push edi
push eax
push ecx
push ebp
call fcn.0041a3f0
add esp, 0x28
test eax, eax
je 0x417e07
mov ecx, dword [esp + 0xa0]
mov edx, dword [0x44a8bc]
inc ecx
mov dword [esp + 0x40], esi
mov eax, dword [edx + edi*4]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov byte [eax + ecx], 0
mov eax, dword [0x449ea0]
cmp eax, esi
mov dword [esp + 0x64], 1
mov dword [esp + 0x50], esi
je 0x417cf2
test byte [0x449ea4], 1
je 0x417cf2
mov edx, dword [0x44a964]
push 0x434d40
push edx
call fcn.0041f590
add esp, 8
mov eax, dword [0x449f1c]
mov edx, dword [ebp + 0x140]
mov ebx, dword [esp + 0x54]
mov ecx, dword [eax + edi*4]
mov eax, dword [edx + edi*4]
add ecx, ebx
add eax, ebx
push ecx
push eax
call fcn.00401000
mov ecx, dword [0x449f1c]
mov eax, dword [ebp + 0x140]
lea esi, [ebx + 0x80]
add esp, 8
mov edx, dword [ecx + edi*4]
mov ecx, dword [eax + edi*4]
add edx, esi
add ecx, esi
push edx
push ecx
call fcn.00401000
mov edx, dword [0x449f1c]
mov ecx, dword [ebp + 0x140]
add esp, 8
mov eax, dword [edx + edi*4 + 4]
mov edx, dword [ecx + edi*4 + 4]
add eax, ebx
add edx, ebx
push eax
push edx
call fcn.00401000
mov eax, dword [0x449f1c]
mov edx, dword [ebp + 0x140]
add esp, 8
mov ecx, dword [eax + edi*4 + 4]
mov eax, dword [edx + edi*4 + 4]
add ecx, esi
add eax, esi
push ecx
push eax
call fcn.00401000
mov eax, dword [0x449ea0]
add esp, 8
test eax, eax
je 0x417da4
test byte [0x449ea4], 1
je 0x417da4
mov ecx, dword [0x44a964]
push 0x434d44
push ecx
call fcn.0041f590
add esp, 8
mov edx, dword [0x449f24]
mov ecx, dword [ebp + 0x148]
mov esi, edi
mov edi, dword [esp + 0x18]
sar esi, 1
shl esi, 2
sar edi, 1
mov eax, dword [esi + edx]
mov edx, dword [ecx + esi]
shl edi, 7
add eax, edi
add edx, edi
push eax
push edx
call fcn.00401000
mov eax, dword [0x449f20]
mov edx, dword [ebp + 0x144]
add esp, 8
mov ecx, dword [esi + eax]
mov eax, dword [edx + esi]
add ecx, edi
add eax, edi
push ecx
push eax
call fcn.00401000
mov esi, dword [esp + 0x1c]
add esp, 8
jmp 0x418124
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0xdf4]
mov edx, dword [esp + 0x94]
mov ecx, dword [0x44a8bc]
mov esi, dword [esp + 0x14]
inc edx
lea eax, [edi*4]
mov dword [esp + 0x24], 0x3f
mov dword [esp + 0x94], edx
mov dword [esp + 0x7c], eax
mov edx, dword [eax + ecx]
mov dword [esp + 0x64], 0
mov dword [esp + 0x50], ebx
mov byte [edx + esi + 2], bl
mov ecx, dword [0x44a8bc]
mov edx, dword [eax + ecx]
mov ecx, dword [esp + 0x2c]
mov dword [edx + esi + 4], ecx
mov edx, dword [0x44a8bc]
mov ecx, dword [eax + edx]
mov edx, dword [esp + 0x28]
mov dword [ecx + esi + 8], edx
mov ecx, dword [0x44a8bc]
mov edx, dword [eax + ecx]
mov ecx, dword [esp + 0x30]
mov dword [edx + esi + 0xc], ecx
mov edx, dword [0x44a8bc]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + edx]
mov dword [eax + esi + 0x10], ecx
mov eax, ebx
sub eax, 0
je 0x417f00
dec eax
je 0x417ee3
dec eax
je 0x417eb6
push ebx
push 0x434d48
push 0x435df8
call fcn.0041f590
add esp, 0xc
push 1
call fcn.0041f630
add esp, 4
jmp 0x417f1b
mov eax, dword [0x449f90]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
inc eax
mov dword [0x449f90], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
jmp 0x417f1b
mov eax, dword [0x449f8c]
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x44], ecx
mov dword [0x449f8c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], eax
jmp 0x417f1b
mov eax, dword [0x449f88]
mov edx, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x40], edx
mov dword [0x449f88], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0xe0c]
push edx
mov edx, dword [esp + 0xe0c]
push ebx
push eax
push edi
push ecx
push edx
push ebp
call fcn.00419c30
mov ecx, dword [0x44a8bc]
mov eax, dword [esp + 0xa8]
add esp, 0x2c
mov edx, dword [eax + ecx]
mov cl, byte [esp + 0x24]
mov byte [edx + esi + 1], cl
mov edx, dword [0x44a8bc]
mov eax, dword [eax + edx]
mov byte [eax + esi], 1
mov eax, dword [0x449fe8]
test eax, eax
je 0x418120
mov eax, dword [0x44a8a4]
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + eax + 1]
test edx, edx
jge 0x417fb3
push 0x1c5
push 0x434d70
push str.fMotionXsearchRangeB1___0
call fcn.0041f820
mov eax, dword [0x44a8a4]
add esp, 0xc
mov ecx, dword [esp + 0x28]
lea edx, [ecx + eax + 1]
test edx, edx
jge 0x417fdb
push 0x1c6
push 0x434d9c
push str.fMotionYsearchRangeB1___0
call fcn.0041f820
mov eax, dword [0x44a8a4]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + eax + 1]
lea ecx, [eax + eax + 2]
cmp edx, ecx
jle 0x418007
push 0x1c7
push 0x434dc8
push str.fMotionXsearchRangeB1___2searchRangeB2
call fcn.0041f820
mov eax, dword [0x44a8a4]
add esp, 0xc
mov edx, dword [esp + 0x28]
lea ecx, [edx + eax + 1]
lea edx, [eax + eax + 2]
cmp ecx, edx
jle 0x418033
push 0x1c8
push 0x434e00
push str.fMotionYsearchRangeB1___2searchRangeB2
call fcn.0041f820
mov eax, dword [0x44a8a4]
add esp, 0xc
mov ecx, dword [esp + 0x30]
lea edx, [ecx + eax + 1]
test edx, edx
jge 0x41805b
push 0x1c9
push 0x434e38
push str.bMotionXsearchRangeB1___0
call fcn.0041f820
mov eax, dword [0x44a8a4]
add esp, 0xc
mov ecx, dword [esp + 0x20]
lea edx, [ecx + eax + 1]
test edx, edx
jge 0x418083
push 0x1ca
push 0x434e64
push str.bMotionYsearchRangeB1___0
call fcn.0041f820
mov eax, dword [0x44a8a4]
add esp, 0xc
mov ecx, dword [esp + 0x30]
lea edx, [ecx + eax + 1]
lea ecx, [eax + eax + 2]
cmp edx, ecx
jle 0x4180af
push 0x1cb
push 0x434e90
push str.bMotionXsearchRangeB1___2searchRangeB2
call fcn.0041f820
mov eax, dword [0x44a8a4]
add esp, 0xc
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax + 1]
lea edx, [eax + eax + 2]
cmp ecx, edx
jle 0x4180db
push 0x1cc
push str.bframe.c
push str.bMotionYsearchRangeB1___2searchRangeB2
call fcn.0041f820
mov eax, dword [0x44a8a4]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add ecx, eax
add edx, eax
mov eax, dword [0x449fa8]
mov ecx, dword [eax + ecx*4 + 4]
lea eax, [ecx + edx*4 + 4]
mov edx, dword [ecx + edx*4 + 4]
inc edx
mov dword [eax], edx
mov eax, dword [0x44a8a4]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
add edx, eax
add ecx, eax
mov eax, dword [0x449fa4]
mov edx, dword [eax + edx*4 + 4]
lea eax, [edx + ecx*4 + 4]
mov ecx, dword [edx + ecx*4 + 4]
inc ecx
mov dword [eax], ecx
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x98]
inc eax
add ebx, 0x100
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
add eax, 2
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], esi
jl 0x417a14
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0xb4]
add eax, 2
add edx, 0x40
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], edx
jl 0x4179f5
mov edi, pe_nt_image_headers32
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x1c], esi
jle 0x419533
mov eax, dword [esp + 0x98]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x419519
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0xdf0]
mov ecx, dword [esp + 0x58]
mov ebx, pe_nt_image_headers32
jmp 0x4181ff
mov esi, dword [esp + 0xdf0]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x10]
mov ebx, pe_nt_image_headers32
mov eax, ecx
cdq
idiv dword [0x44a8c0]
test edx, edx
jne 0x4182a5
test ecx, ecx
je 0x4182a5
mov eax, dword [0x439620]
test eax, eax
je 0x418259
lea eax, [esp + 0x80]
push ebp
push eax
mov eax, dword [esp + 0x60]
cdq
idiv dword [0x44a8c0]
mov ecx, dword [esp + 0xdfc]
mov edx, dword [ecx + 0x104]
push eax
push 1
push edx
call fcn.004120d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x418259
mov ebp, eax
mov dword [esp + 0x10], ebp
push esi
call fcn.00402800
mov eax, dword [esp + 0x20]
add esp, 4
xor edi, edi
sar eax, 1
push edi
push edi
inc eax
push ebp
push eax
push esi
call fcn.00402780
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x2c]
add esp, 0x14
sar edi, 1
inc edi
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x60], edi
cmp dword [esp + 0xbc], 1
jne 0x418314
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0xdf4]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [edx + 0x140]
mov esi, dword [edx + ebx*4 + 4]
mov edx, dword [edx + ebx*4]
lea eax, [ecx + 1]
shl eax, 7
shl ecx, 7
lea ebx, [esi + eax]
add esi, ecx
push ebx
add eax, edx
push esi
add edx, ecx
push eax
push edx
push ebp
call fcn.00412a60
add esp, 0x14
test eax, eax
jle 0x418309
mov esi, dword [esp + 0x1c]
mov ebp, eax
mov dword [esp + 0x10], ebp
mov ebx, 1
jmp 0x41831d
mov esi, dword [esp + 0x1c]
mov ebx, 1
jmp 0x41831d
mov esi, dword [esp + 0x1c]
mov ebx, 1
mov eax, dword [0x439620]
test eax, eax
je 0x418357
mov edx, dword [esp + 0xdf4]
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x80]
push ebp
push eax
mov eax, dword [edx + 0x104]
push ecx
push 2
push eax
call fcn.004120d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x418357
mov ebp, eax
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [0x44a8bc]
lea edx, [eax + eax*4]
mov eax, dword [ecx + esi*4]
shl edx, 2
add eax, edx
mov dword [esp + 0x3c], edx
mov cl, byte [eax]
test cl, cl
jne 0x418769
mov ebp, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov edi, ebp
lea ebx, [ebp + 1]
lea ecx, [eax + 1]
mov dword [esp + 0x54], ebx
sar ebp, 1
sar eax, 1
shl edi, 7
shl ebx, 7
mov dword [esp + 0x68], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], eax
shl ebp, 7
mov edx, dword [esp + 0x10]
mov ecx, dword [0x449f1c]
push 1
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x3f4]
push eax
mov eax, dword [ecx + edx*4]
add eax, edi
push eax
call fcn.004015a0
mov edx, dword [esp + 0x20]
add esp, 0x10
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
push 1
mov esi, ecx
mov ecx, dword [0x449f1c]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x474]
push eax
mov eax, dword [ecx + edx*4]
add eax, ebx
push eax
call fcn.004015a0
mov edx, dword [esp + 0x20]
add esp, 0x10
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
push 1
or esi, ecx
mov ecx, dword [0x449f1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x4f4]
push eax
mov eax, dword [ecx + edx*4]
add eax, edi
push eax
call fcn.004015a0
mov edx, dword [esp + 0x20]
add esp, 0x10
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
push 1
or esi, ecx
mov ecx, dword [0x449f1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x574]
push eax
mov eax, dword [ecx + edx*4]
add eax, ebx
push eax
call fcn.004015a0
mov edx, dword [esp + 0x20]
add esp, 0x10
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
push 1
or esi, ecx
mov ecx, dword [0x449f24]
push edx
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x5f4]
push eax
mov eax, dword [ecx + edx*4]
add eax, ebp
push eax
call fcn.004015a0
add esp, 0x10
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
or esi, ecx
push 1
mov edx, dword [esp + 0x14]
mov ecx, dword [0x449f20]
push edx
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x674]
push eax
mov eax, dword [ecx + edx*4]
add eax, ebp
push eax
call fcn.004015a0
add esp, 0x10
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
or esi, ecx
je 0x4184fa
mov eax, dword [esp + 0x10]
cmp eax, 0x1f
je 0x4184fa
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x64], 1
inc ecx
inc eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
jmp 0x4184fc
xor esi, esi
test esi, esi
jne 0x4183b1
xor edi, edi
push 1
push edi
push edi
push edi
push edi
mov ebx, dword [esp + 0x24]
push edi
mov edx, dword [esp + 0x78]
push edi
push edi
mov esi, dword [esp + 0xe10]
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push edx
push 3
push esi
call fcn.00402810
movsx ecx, word [esp + 0x434]
add esp, 0x48
lea eax, [esp + 0x70]
push esi
push eax
push ecx
call fcn.004149d0
add esp, 0xc
lea edx, [esp + 0x3ec]
push esi
push edx
call fcn.00401720
movsx ecx, word [esp + 0x474]
add esp, 8
lea eax, [esp + 0x70]
push esi
push eax
push ecx
call fcn.004149d0
add esp, 0xc
lea edx, [esp + 0x46c]
push esi
push edx
call fcn.00401720
movsx ecx, word [esp + 0x4f4]
add esp, 8
lea eax, [esp + 0x70]
push esi
push eax
push ecx
call fcn.004149d0
add esp, 0xc
lea edx, [esp + 0x4ec]
push esi
push edx
call fcn.00401720
movsx ecx, word [esp + 0x574]
add esp, 8
lea eax, [esp + 0x70]
push esi
push eax
push ecx
call fcn.004149d0
add esp, 0xc
lea edx, [esp + 0x56c]
push esi
push edx
call fcn.00401720
movsx ecx, word [esp + 0x5f4]
add esp, 8
lea eax, [esp + 0x90]
push esi
push eax
push ecx
call fcn.00414a50
add esp, 0xc
lea edx, [esp + 0x5ec]
push esi
push edx
call fcn.00401720
movsx ecx, word [esp + 0x674]
add esp, 8
lea eax, [esp + 0x8c]
push esi
push eax
push ecx
call fcn.00414a50
add esp, 0xc
lea edx, [esp + 0x66c]
push esi
push edx
call fcn.00401720
mov eax, dword [esp + 0x6c]
add esp, 8
cmp eax, edi
je 0x418637
sub ebx, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0xb8]
mov eax, esi
sub eax, edx
mov dword [esp + 0x60], 1
add ecx, eax
mov eax, dword [0x449f10]
cmp eax, edi
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
je 0x4194ba
xor esi, esi
lea edi, [esp + esi + 0xec]
push 1
push ebx
lea ecx, [esp + esi + 0x3f4]
push edi
push ecx
call fcn.004014b0
add esp, 0x10
push edi
call fcn.0040b390
add esi, 0x80
add esp, 4
cmp esi, 0x300
jl 0x41867d
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0xdf4]
mov edi, dword [esp + 0x1c]
push ebx
mov eax, dword [esi + 0x128]
lea edx, [esp + 0xf0]
push edi
push edx
push eax
call fcn.0041e220
mov ebp, dword [esp + 0x64]
mov edx, dword [esi + 0x128]
add esp, 0x10
lea ecx, [esp + 0x16c]
push ebp
push edi
push ecx
push edx
call fcn.0041e220
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 0x128]
add esp, 0x10
lea eax, [esp + 0x1ec]
push ebx
push edi
push eax
push ecx
call fcn.0041e220
mov eax, dword [esi + 0x128]
add esp, 0x10
lea edx, [esp + 0x26c]
push ebp
push edi
push edx
push eax
call fcn.0041e220
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x60]
mov edx, dword [esi + 0x130]
add esp, 0x10
lea ecx, [esp + 0x2ec]
push ebx
push edi
push ecx
push edx
call fcn.0041e220
mov ecx, dword [esi + 0x12c]
add esp, 0x10
lea eax, [esp + 0x36c]
push ebx
push edi
push eax
push ecx
call fcn.0041e220
add esp, 0x10
jmp 0x4194ba
cmp cl, 2
jne 0x418a65
mov edx, dword [esp + 0x9c]
mov eax, dword [0x449f10]
inc edx
inc edi
test eax, eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0x60], edi
je 0x4194ba
mov ecx, 0xc0
xor eax, eax
lea edi, [esp + 0xec]
rep stosd dword es:[edi], eax
mov eax, dword [0x44a898]
test eax, eax
je 0x4187ca
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
lea esi, [edx + edx]
mov edx, dword [esp + 0x48]
lea edi, [eax + eax]
lea ebp, [ecx + ecx]
lea ebx, [edx + edx]
jmp 0x4187da
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push edi
push esi
push eax
mov eax, dword [esp + 0xe10]
push ecx
push edx
mov edx, dword [esp + 0xe14]
mov ecx, dword [eax + 0x128]
mov eax, dword [edx + 0x128]
push ecx
lea ecx, [esp + 0x10c]
push eax
push ecx
call fcn.0041e0e0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x5c]
add esp, 0x28
lea eax, [edx + 1]
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push edi
push esi
push ecx
mov dword [esp + 0x68], eax
push eax
mov eax, dword [esp + 0xe14]
push edx
mov edx, dword [esp + 0xe14]
mov ecx, dword [eax + 0x128]
mov eax, dword [edx + 0x128]
push ecx
lea ecx, [esp + 0x18c]
push eax
push ecx
call fcn.0041e0e0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
add esp, 0x28
lea eax, [edx + 1]
mov edx, dword [esp + 0x18]
push ebx
push ebp
push edi
push esi
push ecx
push edx
mov edx, dword [esp + 0xe10]
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0xe18]
mov ecx, dword [eax + 0x128]
mov eax, dword [edx + 0x128]
push ecx
lea ecx, [esp + 0x20c]
push eax
push ecx
call fcn.0041e0e0
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x3c]
add esp, 0x28
push ebx
push ebp
push edi
push esi
push edx
mov edx, dword [esp + 0xe10]
push eax
push ecx
mov ecx, dword [esp + 0xe14]
mov eax, dword [edx + 0x128]
push eax
lea eax, [esp + 0x28c]
mov edx, dword [ecx + 0x128]
push edx
push eax
call fcn.0041e0e0
mov eax, ebx
add esp, 0x28
cdq
sub eax, edx
mov ecx, eax
mov eax, ebp
cdq
sub eax, edx
mov ebp, dword [esp + 0x1c]
mov ebx, eax
mov eax, edi
cdq
sub eax, edx
mov edi, ebp
sar eax, 1
mov dword [esp + 0x3c], eax
mov eax, esi
mov esi, dword [esp + 0x18]
cdq
sar ecx, 1
mov dword [esp + 0x68], ecx
sub eax, edx
mov edx, dword [esp + 0xdfc]
push ecx
mov ecx, dword [esp + 0x40]
sar ebx, 1
mov dword [esp + 0xac], ebx
push ebx
mov ebx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0xe04]
sar eax, 1
sar esi, 1
push eax
mov dword [esp + 0x8c], eax
mov eax, dword [edx + 0x130]
mov edx, dword [ecx + 0x130]
sar edi, 1
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x30c]
push edx
push eax
call fcn.0041e0e0
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0x64]
add esp, 0x28
push ecx
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0xe04]
push eax
push ecx
mov ecx, dword [esp + 0xe08]
mov eax, dword [edx + 0x12c]
push ebx
push esi
mov edx, dword [ecx + 0x12c]
push edi
push eax
lea eax, [esp + 0x38c]
push edx
push eax
call fcn.0041e0e0
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0xe1c]
add esp, 0x28
lea edx, [esp + 0xec]
mov eax, dword [ebx + 0x128]
push ecx
push ebp
push edx
push eax
call fcn.0041e220
mov ecx, dword [esp + 0x64]
add esp, 0x10
mov eax, dword [ebx + 0x128]
push ecx
lea edx, [esp + 0x170]
push ebp
push edx
push eax
call fcn.0041e220
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov eax, dword [ebx + 0x128]
add esp, 0x10
lea edx, [esp + 0x1ec]
push ecx
push ebp
push edx
push eax
call fcn.0041e220
mov ecx, dword [esp + 0x64]
mov eax, dword [ebx + 0x128]
add esp, 0x10
lea edx, [esp + 0x26c]
push ecx
push ebp
push edx
push eax
call fcn.0041e220
mov edx, dword [ebx + 0x130]
add esp, 0x10
lea ecx, [esp + 0x2ec]
push esi
push edi
push ecx
push edx
call fcn.0041e220
mov ecx, dword [ebx + 0x12c]
add esp, 0x10
lea eax, [esp + 0x36c]
push esi
push edi
push eax
push ecx
call fcn.0041e220
add esp, 0x10
jmp 0x4194ba
movsx eax, byte [eax + 1]
mov ecx, dword [0x44a8ac]
mov dword [esp + 0x24], eax
mov eax, dword [0x44a8bc]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + esi*4]
mov ecx, dword [edx + ecx + 4]
mov dword [esp + 0x2c], ecx
mov edi, dword [eax + esi*4]
mov edi, dword [edx + edi + 8]
mov dword [esp + 0x28], edi
mov edi, dword [eax + esi*4]
mov edi, dword [edx + edi + 0xc]
mov dword [esp + 0x30], edi
mov eax, dword [eax + esi*4]
mov edx, dword [edx + eax + 0x10]
mov eax, dword [0x44a898]
test eax, eax
mov dword [esp + 0x20], edx
je 0x418ae1
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x18]
test byte [esp + 0x24], 0x20
je 0x418b22
mov edx, dword [0x449f1c]
push 0
lea eax, [esp + 0x6f0]
push ebp
mov ecx, edi
push eax
mov eax, dword [edx + esi*4]
shl ecx, 7
add eax, ecx
push eax
call fcn.004015a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x419773
test eax, eax
jne 0x418b22
xor dword [esp + 0x24], 0x20
test byte [esp + 0x24], 0x10
je 0x418b79
mov eax, dword [0x449f1c]
push 0
lea ecx, [esp + 0x770]
push ebp
lea edx, [edi + 1]
push ecx
mov ecx, dword [eax + esi*4]
shl edx, 7
add ecx, edx
push ecx
call fcn.004015a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x418b5d
test eax, eax
jne 0x418b79
xor dword [esp + 0x24], 0x10
jmp 0x418b79
cmp ebp, 0x1f
je 0x418b79
mov eax, dword [esp + 0x38]
inc ebp
inc eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], eax
jmp 0x418ae5
test byte [esp + 0x24], 8
je 0x418bd1
mov ecx, dword [0x449f1c]
push 0
lea edx, [esp + 0x7f0]
push ebp
mov eax, edi
push edx
mov edx, dword [ecx + esi*4 + 4]
shl eax, 7
add edx, eax
push edx
call fcn.004015a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x418bb5
test eax, eax
jne 0x418bd1
xor dword [esp + 0x24], 8
jmp 0x418bd1
cmp ebp, 0x1f
je 0x418bd1
mov eax, dword [esp + 0x38]
inc ebp
inc eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], eax
jmp 0x418ae5
test byte [esp + 0x24], 4
je 0x418c2a
mov edx, dword [0x449f1c]
push 0
lea eax, [esp + 0x870]
push ebp
lea ecx, [edi + 1]
push eax
mov eax, dword [edx + esi*4 + 4]
shl ecx, 7
add eax, ecx
push eax
call fcn.004015a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x418c0e
test eax, eax
jne 0x418c2a
xor dword [esp + 0x24], 4
jmp 0x418c2a
cmp ebp, 0x1f
je 0x418c2a
mov eax, dword [esp + 0x38]
inc ebp
inc eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], eax
jmp 0x418ae5
test byte [esp + 0x24], 2
je 0x418c87
push 0
lea ecx, [esp + 0x8f0]
push ebp
mov edx, esi
push ecx
mov ecx, dword [0x449f24]
mov eax, edi
sar edx, 1
sar eax, 1
mov edx, dword [ecx + edx*4]
shl eax, 7
add edx, eax
push edx
call fcn.004015a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x418c6b
test eax, eax
jne 0x418c87
xor dword [esp + 0x24], 2
jmp 0x418c87
cmp ebp, 0x1f
je 0x418c87
mov eax, dword [esp + 0x38]
inc ebp
inc eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], eax
jmp 0x418ae5
test byte [esp + 0x24], 1
je 0x418ce0
push 0
lea eax, [esp + 0x970]
push ebp
mov ecx, esi
push eax
mov eax, dword [0x449f20]
mov edx, edi
sar ecx, 1
sar edx, 1
mov ecx, dword [eax + ecx*4]
shl edx, 7
add ecx, edx
push ecx
call fcn.004015a0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x418cd8
cmp ebp, 0x1f
je 0x418ce0
mov eax, dword [esp + 0x38]
inc ebp
inc eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], eax
jmp 0x418ae5
test eax, eax
jne 0x418ce0
xor dword [esp + 0x24], ebx
mov edx, dword [0x44a8bc]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + esi*4]
mov al, byte [eax + ecx + 2]
xor ecx, ecx
cmp al, 1
setne cl
xor edx, edx
mov dword [esp + 0x68], ecx
test al, al
setne dl
test ecx, ecx
mov dword [esp + 0x50], edx
je 0x418e67
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x4c]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub edx, ebx
or esi, 0xffffffff
lea ebx, [ecx + 3]
mov ecx, ebx
shl esi, cl
cmp eax, esi
jge 0x418d47
mov ecx, dword [esp + 0x14]
mov edi, 1
add ecx, 4
shl edi, cl
add edi, eax
jmp 0x418d67
mov edi, 1
mov ecx, ebx
shl edi, cl
dec edi
cmp eax, edi
jle 0x418d65
mov ecx, dword [esp + 0x14]
mov edi, 1
add ecx, 4
shl edi, cl
sub eax, edi
mov edi, eax
cmp edx, esi
jge 0x418d7d
mov eax, dword [esp + 0x14]
mov ebx, 1
lea ecx, [eax + 4]
shl ebx, cl
add ebx, edx
jmp 0x418d9d
mov eax, 1
mov ecx, ebx
shl eax, cl
dec eax
cmp edx, eax
jle 0x418d9b
mov ecx, dword [esp + 0x14]
mov eax, 1
add ecx, 4
shl eax, cl
sub edx, eax
mov ebx, edx
test edi, edi
jl 0x418dd9
mov ecx, dword [esp + 0x14]
mov esi, 1
dec ecx
mov eax, edi
shl esi, cl
cdq
idiv esi
mov edx, esi
imul edx, eax
cmp edx, edi
jge 0x418dbc
inc eax
mov dword [esp + 0x78], eax
mov eax, 1
sub eax, dword [esp + 0x78]
imul eax, esi
lea ecx, [eax + edi - 1]
mov dword [esp + 0xac], ecx
jmp 0x418e0c
mov edx, dword [esp + 0x14]
mov esi, 1
mov eax, edi
lea ecx, [edx - 1]
shl esi, cl
cdq
idiv esi
mov ecx, esi
imul ecx, eax
cmp ecx, edi
jle 0x418df6
dec eax
mov edx, eax
mov dword [esp + 0x78], eax
lea eax, [edx + 1]
imul eax, esi
sub eax, edi
dec eax
mov dword [esp + 0xac], eax
mov eax, ebx
test ebx, ebx
cdq
jl 0x418e36
idiv esi
mov ecx, esi
imul ecx, eax
cmp ecx, ebx
jge 0x418e1f
inc eax
mov edx, 1
mov dword [esp + 0x84], eax
sub edx, eax
imul edx, esi
lea eax, [edx + ebx - 1]
jmp 0x418e50
idiv esi
mov ecx, esi
imul ecx, eax
cmp ecx, ebx
jle 0x418e42
dec eax
mov dword [esp + 0x84], eax
inc eax
imul eax, esi
sub eax, ebx
dec eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x418fcb
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x44]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub edx, ebx
or esi, 0xffffffff
lea ebx, [ecx + 3]
mov ecx, ebx
shl esi, cl
cmp eax, esi
jge 0x418eab
mov ecx, dword [esp + 0x14]
mov edi, 1
add ecx, 4
shl edi, cl
add edi, eax
jmp 0x418ecb
mov edi, 1
mov ecx, ebx
shl edi, cl
dec edi
cmp eax, edi
jle 0x418ec9
mov ecx, dword [esp + 0x14]
mov edi, 1
add ecx, 4
shl edi, cl
sub eax, edi
mov edi, eax
cmp edx, esi
jge 0x418ee1
mov eax, dword [esp + 0x14]
mov ebx, 1
lea ecx, [eax + 4]
shl ebx, cl
add ebx, edx
jmp 0x418f01
mov eax, 1
mov ecx, ebx
shl eax, cl
dec eax
cmp edx, eax
jle 0x418eff
mov ecx, dword [esp + 0x14]
mov eax, 1
add ecx, 4
shl eax, cl
sub edx, eax
mov ebx, edx
test edi, edi
jl 0x418f3d
mov ecx, dword [esp + 0x14]
mov esi, 1
dec ecx
mov eax, edi
shl esi, cl
cdq
idiv esi
mov edx, esi
imul edx, eax
cmp edx, edi
jge 0x418f20
inc eax
mov dword [esp + 0x6c], eax
mov eax, 1
sub eax, dword [esp + 0x6c]
imul eax, esi
lea ecx, [eax + edi - 1]
mov dword [esp + 0xc0], ecx
jmp 0x418f70
mov edx, dword [esp + 0x14]
mov esi, 1
mov eax, edi
lea ecx, [edx - 1]
shl esi, cl
cdq
idiv esi
mov ecx, esi
imul ecx, eax
cmp ecx, edi
jle 0x418f5a
dec eax
mov edx, eax
mov dword [esp + 0x6c], eax
lea eax, [edx + 1]
imul eax, esi
sub eax, edi
dec eax
mov dword [esp + 0xc0], eax
mov eax, ebx
test ebx, ebx
cdq
jl 0x418f9a
idiv esi
mov ecx, esi
imul ecx, eax
cmp ecx, ebx
jge 0x418f83
inc eax
mov edx, 1
mov dword [esp + 0x88], eax
sub edx, eax
imul edx, esi
lea eax, [edx + ebx - 1]
jmp 0x418fb4
idiv esi
mov ecx, esi
imul ecx, eax
cmp ecx, ebx
jle 0x418fa6
dec eax
mov dword [esp + 0x88], eax
inc eax
imul eax, esi
sub eax, ebx
dec eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], eax
mov eax, dword [0x449f10]
test eax, eax
je 0x419311
mov eax, dword [0x44a898]
test eax, eax
je 0x41900d
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
lea edx, [ecx + ecx]
lea ecx, [eax + eax]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
lea eax, [edx + edx]
lea edx, [ecx + ecx]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edx
mov ebp, 5
xor ebx, ebx
mov eax, 1
mov ecx, ebp
shl eax, cl
mov ecx, dword [esp + 0x24]
test ecx, eax
je 0x41904f
mov edx, dword [esp + 0x10]
lea esi, [esp + ebx + 0xec]
push 0
push edx
lea eax, [esp + ebx + 0x6f4]
push esi
push eax
call fcn.004014b0
add esp, 0x10
push esi
call fcn.0040b390
add esp, 4
jmp 0x41905f
mov ecx, 0x20
xor eax, eax
lea edi, [esp + ebx + 0xec]
rep stosd dword es:[edi], eax
dec ebp
add ebx, 0x80
cmp ebp, 0xffffffff
jg 0x419014
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0xe04]
push eax
push ecx
mov ecx, dword [esp + 0xe08]
mov eax, dword [edx + 0x128]
push ebp
push esi
mov edx, dword [ecx + 0x128]
push edi
push eax
lea eax, [esp + 0x10c]
push edx
push eax
call fcn.0041e0e0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
add esp, 0x28
lea ebx, [esi + 1]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0xe04]
push eax
push ecx
mov ecx, dword [esp + 0xe08]
mov eax, dword [edx + 0x128]
push ebp
push ebx
mov edx, dword [ecx + 0x128]
push edi
push eax
lea eax, [esp + 0x18c]
push edx
push eax
call fcn.0041e0e0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
add esp, 0x28
lea ebp, [edi + 1]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0xe08]
push ecx
push edx
mov edx, dword [esp + 0xe0c]
mov ecx, dword [eax + 0x128]
push esi
push ebp
mov eax, dword [edx + 0x128]
push ecx
lea ecx, [esp + 0x20c]
push eax
push ecx
call fcn.0041e0e0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
add esp, 0x28
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
push ebx
push ebp
mov ecx, dword [esp + 0xe18]
mov eax, dword [esp + 0xe14]
mov edx, dword [ecx + 0x128]
mov ecx, dword [eax + 0x128]
push edx
lea edx, [esp + 0x28c]
push ecx
push edx
call fcn.0041e0e0
mov eax, dword [esp + 0x58]
add esp, 0x28
cdq
sub eax, edx
mov ecx, dword [esp + 0xdfc]
sar eax, 1
push eax
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x34]
cdq
sub eax, edx
mov edx, dword [ecx + 0x130]
sar eax, 1
push eax
mov eax, dword [esp + 0x44]
sar esi, 1
push eax
mov eax, dword [esp + 0xe0c]
sar edi, 1
mov ecx, dword [eax + 0x130]
push esi
push edi
push edx
lea edx, [esp + 0x30c]
push ecx
push edx
call fcn.0041e0e0
mov eax, dword [esp + 0x58]
add esp, 0x28
cdq
sub eax, edx
mov ecx, dword [esp + 0xdfc]
sar eax, 1
push eax
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x34]
cdq
sub eax, edx
mov edx, dword [ecx + 0x12c]
sar eax, 1
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0xe0c]
push esi
push edi
mov ecx, dword [eax + 0x12c]
push edx
lea edx, [esp + 0x38c]
push ecx
push edx
call fcn.0041e0e0
mov eax, dword [esp + 0x40]
add esp, 0x28
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0xdf8]
push ecx
lea edx, [esp + 0xf4]
mov ecx, dword [eax + 0x128]
push edx
push ecx
call fcn.0041e220
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0xe04]
add esp, 0x10
lea eax, [esp + 0x16c]
push ebx
push edx
mov edx, dword [ecx + 0x128]
push eax
push edx
call fcn.0041e220
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0xe04]
add esp, 0x10
lea ecx, [esp + 0x1ec]
push eax
mov eax, dword [edx + 0x128]
push ebp
push ecx
push eax
call fcn.0041e220
add esp, 0x10
lea ecx, [esp + 0x26c]
push ebx
mov ebx, dword [esp + 0xdf8]
push ebp
push ecx
mov edx, dword [ebx + 0x128]
push edx
call fcn.0041e220
mov ecx, dword [ebx + 0x130]
add esp, 0x10
lea eax, [esp + 0x2ec]
push esi
push edi
push eax
push ecx
call fcn.0041e220
mov eax, dword [ebx + 0x12c]
add esp, 0x10
lea edx, [esp + 0x36c]
push esi
push edi
push edx
push eax
call fcn.0041e220
mov ebp, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [0x44a8bc]
mov edx, dword [esp + 0x1c]
mov eax, pe_nt_image_headers32
push 0
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x74], eax
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x58]
movsx ebx, byte [eax + ecx + 2]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0xdc]
push edx
mov edx, dword [esp + 0xd0]
push eax
mov eax, dword [esp + 0xd0]
push ecx
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0xe1c]
push eax
mov eax, dword [0x44a8ac]
push eax
push eax
push ebp
push ecx
push 3
push edx
mov dword [esp + 0x7c], ebx
call fcn.00402810
add esp, 0x48
mov dword [esp + 0x60], 1
lea edi, [esp + 0x6ec]
mov esi, 5
mov eax, 1
mov ecx, esi
shl eax, cl
test dword [esp + 0x24], eax
je 0x4193e6
mov ecx, dword [esp + 0xdf0]
push ecx
push edi
call fcn.00401850
add esp, 8
dec esi
add edi, 0x80
cmp esi, 0xffffffff
jg 0x4193c6
mov eax, ebx
sub eax, 0
je 0x41945c
dec eax
je 0x41943e
dec eax
je 0x41941e
push ebx
push str.PROGRAMMER_ERROR:__Illegal_mode:__d_n
push 0x435df8
call fcn.0041f590
add esp, 0xc
push 1
call fcn.0041f630
add esp, 4
jmp 0x419478
mov edx, dword [esp + 0xdf0]
mov ecx, dword [0x449f9c]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x74]
sub eax, edx
add ecx, eax
mov dword [0x449f9c], ecx
jmp 0x419478
mov ecx, dword [esp + 0xdf0]
mov eax, dword [0x449f98]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x74]
sub edx, ecx
add eax, edx
mov dword [0x449f98], eax
jmp 0x419478
mov eax, dword [esp + 0xdf0]
mov edx, dword [esp + 0x74]
mov ecx, dword [eax + 4]
mov eax, dword [0x449f94]
sub ecx, edx
add eax, ecx
mov dword [0x449f94], eax
mov edx, dword [esp + 0xdf0]
mov esi, dword [esp + 0x74]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0xc4]
mov ecx, eax
mov dword [esp + 0x74], eax
sub ecx, esi
xor eax, eax
add edx, ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
mov dword [esp + 0xc4], edx
je 0x4194ba
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
sub ebp, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0xbc]
inc ecx
cmp eax, 1
mov dword [esp + 0x58], ecx
jne 0x4194ff
mov esi, dword [esp + 0xdf0]
mov ebx, dword [esp + 0xc8]
mov edx, dword [esi + 4]
sub edx, ebx
push edx
call fcn.00412a30
mov eax, dword [esi + 4]
add esp, 4
mov dword [esp + 0xc8], eax
push 4
call fcn.00412980
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x98]
add eax, 2
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4181e7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb4]
add eax, 2
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4181b6
mov eax, dword [0x449f10]
test eax, eax
je 0x419584
mov ebx, dword [esp + 0xdf4]
lea ecx, [esp + 0xd4]
lea edx, [esp + 0xe0]
push ecx
push edx
push ebx
call fcn.00414ad0
fld dword [esp + 0xec]
fadd dword [0x449f80]
add esp, 0xc
fstp dword [0x449f80]
fld dword [esp + 0xd4]
fadd dword [0x449f84]
fstp dword [0x449f84]
jmp 0x41958b
mov ebx, dword [esp + 0xdf4]
mov edi, dword [esp + 0xdf0]
push edi
call fcn.00402800
mov eax, dword [esp + 0xc0]
add esp, 4
cmp eax, 1
jne 0x4195b1
push 4
call fcn.004127d0
add esp, 4
call fcn.00415620
mov edx, dword [esp + 0xd0]
mov ecx, dword [0x449f7c]
mov esi, eax
mov eax, dword [0x449fc4]
sub esi, edx
add ecx, esi
test eax, eax
mov dword [0x449f7c], ecx
jne 0x4196e7
mov eax, dword [0x449fe4]
test eax, eax
je 0x419615
mov eax, dword [edi + 4]
mov ebp, dword [esp + 0xcc]
sub eax, ebp
mov ecx, dword [ebx + 0x104]
mov edx, dword [0x4390fc]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 1
push eax
push ecx
push str._5d_t_8d_n
push edx
call fcn.0041f590
add esp, 0x10
mov eax, dword [0x449fc4]
test eax, eax
jne 0x4196e7
mov eax, dword [0x435864]
test eax, eax
je 0x4196e7
mov eax, dword [0x449fd8]
test eax, eax
jne 0x4196e7
mov eax, esi
mov ecx, dword [esp + 0x94]
cdq
idiv dword [0x44a8a8]
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xa0]
push eax
mov eax, dword [ebx + 0x104]
push ecx
push edx
push eax
push str.FRAME__d__B_:__I_BLOCKS:___d___B_BLOCKS:___d___SKIPPED:___d___ld_seconds__n
push 0x435dd8
call fcn.0041f590
mov eax, dword [0x449f10]
add esp, 0x1c
test eax, eax
je 0x4196e7
fld dword [esp + 0xdc]
sub esp, 8
mov ecx, dword [ebx + 0x104]
fstp qword [esp]
fld dword [esp + 0xe0]
sub esp, 8
fstp qword [esp]
fld dword [esp + 0xe4]
sub esp, 8
fstp qword [esp]
fld dword [esp + 0x100]
sub esp, 8
fstp qword [esp]
fld dword [esp + 0x104]
sub esp, 8
fstp qword [esp]
fld dword [esp + 0x108]
sub esp, 8
fstp qword [esp]
push ecx
push str.FRAME__d:__SNR:___.1f_t_.1f_t_.1f_tPSNR:___.1f_t_.1f_t_.1f_n
push 0x435dd8
call fcn.0041f590
add esp, 0x3c
mov edx, dword [edi + 4]
mov eax, dword [esp + 0xcc]
mov ebx, dword [0x449f60]
mov ecx, dword [esp + 0x94]
mov edi, dword [0x449f64]
mov ebp, dword [0x449f78]
mov esi, dword [0x449f68]
sub edx, eax
mov eax, dword [esp + 0xa0]
add edi, ecx
mov ecx, dword [0x449f6c]
add ebx, eax
mov eax, dword [esp + 0xb8]
add ebp, edx
mov edx, dword [esp + 0x9c]
add ecx, eax
mov eax, dword [0x449f70]
add esi, edx
mov dword [0x449f6c], ecx
mov ecx, dword [esp + 0xc4]
mov dword [0x449f64], edi
mov dword [0x449f68], esi
pop edi
mov dword [0x449f78], ebp
add eax, ecx
pop esi
mov dword [0x449f60], ebx
pop ebp
mov dword [0x449f70], eax
pop ebx
add esp, 0xddc
ret
cmp ebp, 0x1f
je 0x418b22
mov eax, dword [esp + 0x38]
inc ebp
inc eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], eax
jmp 0x418ae5