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

Disassembly:
push 0xffffffffffffffff
push 0x493c48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], edi
inc ecx
mov dword [ebp + 0xc], ecx
mov esi, dword [ebp + 0x20]
cmp esi, edi
jle 0x415dbc
dec esi
mov edi, 0xa
mov dword [ebp + 0x20], esi
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
sub edi, esi
imul ecx, esi
imul eax, edi
add ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
mov eax, 0x66666667
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [ebp + 0x10]
mov ebx, edx
mov edx, dword [ebp + 0x18]
imul ecx, esi
imul edx, edi
add ecx, edx
mov dword [esp + 0x3c], ebx
imul ecx
mov ecx, dword [ebp + 4]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x38], edx
mov eax, dword [ecx + 0x1c]
lea edx, [esp + 0x38]
push edx
push eax
call dword [0x499490]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call dword [0x499494]
xor edi, edi
mov eax, dword [ebp + 8]
mov ebx, 4
cmp eax, ebx
ja case.default.0x415dcc
jmp dword [eax*4 + 0x417a9c]
cmp dword [ebp + 0xcc], edi
je 0x415fea
mov eax, dword [0x4aa0d0]
sub esp, 0x10
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [0x4aa0d4]
cdq
sub eax, edx
lea edx, [ebp + 0x44]
sar ecx, 1
mov dword [edx], ecx
mov dword [ebp + 0xc], edi
sar eax, 1
mov dword [edx + 4], eax
mov edi, esp
mov dword [ebp + 8], ebx
mov dword [edx + 8], ecx
xor ecx, ecx
mov dword [edx + 0xc], eax
mov edx, dword [0x4aa0d0]
xor eax, eax
mov esi, dword [0x4aa0d4]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp + 4]
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
call fcn.00402ee0
mov eax, dword [ebp + 8]
mov ecx, 1
cmp eax, 2
je 0x415e47
cmp eax, 3
je 0x415e47
cmp eax, ebx
jne 0x415e4d
mov dword [0x4bb084], ecx
cmp dword [ebp + 8], ecx
jne 0x415ea6
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0x18c]
mov ecx, dword [ebp + eax*4 + 0x78]
push ecx
push 0x4ab544
push edx
call fcn.004655c2
add esp, 0xc
lea eax, [esp + 0x18c]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [ebp + 0x24]
call fcn.00413070
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov ecx, ebp
mov dword [edx + 0xc], eax
call fcn.004130d0
cmp dword [ebp + 8], ebx
jne case.default.0x415dcc
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0xc4]
push edx
mov eax, dword [ecx + 0x1c]
push eax
call fcn.00454d1e
push 0x4ba4a8
mov ecx, ebp
mov dword [ebp + 0xc8], eax
mov byte [ebp + 0x98], 0
call fcn.00413120
mov ecx, ebp
call fcn.004133e0
mov eax, dword [ebp + 0xc4]
test eax, eax
je 0x415f9d
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x78]
push 0x4aaddc
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x9c]
lea eax, [esp + 0x3c]
push eax
call fcn.00404930
mov ecx, dword [eax + 4]
mov edi, 0x4ab534
neg ecx
mov dword [esp + 0x78], ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x8f], 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0xc4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
push ecx
push edx
call fcn.00454d18
mov eax, dword [ebp + 0xc4]
push 1
push eax
call fcn.00454d12
mov eax, dword [ebp + 0xc4]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00454d0c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 0xc4]
or al, 3
push ecx
push eax
push edx
mov dword [esp + 0x1c], eax
call fcn.00454d06
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x3c]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x6c]
push 0x4ab10c
push edx
call fcn.00413070
mov ecx, eax
call fcn.00418210
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
jmp case.default.0x415dcc
sub esp, 0x10
mov dword [ebp + 0xc], edi
mov edi, esp
xor eax, eax
xor ecx, ecx
mov dword [ebp + 8], 1
mov edx, dword [0x4aa0d0]
mov esi, dword [0x4aa0d4]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp + 4]
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
call fcn.00402ee0
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x41602d
cmp eax, 3
je 0x41602d
cmp eax, ebx
jne 0x416037
mov dword [0x4bb084], 1
cmp dword [ebp + 8], 1
jne 0x416091
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0x18c]
mov edx, dword [ebp + ecx*4 + 0x78]
push edx
push 0x4ab544
push eax
call fcn.004655c2
add esp, 0xc
lea ecx, [esp + 0x18c]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
call fcn.00413070
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
cmp dword [ebp + 8], ebx
jne case.default.0x415dcc
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0xc4]
push edx
mov eax, dword [ecx + 0x1c]
push eax
call fcn.00454d1e
push 0x4ba4a8
mov ecx, ebp
mov dword [ebp + 0xc8], eax
mov byte [ebp + 0x98], 0
call fcn.00413120
mov ecx, ebp
call fcn.004133e0
mov eax, dword [ebp + 0xc4]
test eax, eax
je 0x416188
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x78]
push 0x4aaddc
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x9c]
lea eax, [esp + 0x3c]
push eax
call fcn.00404930
mov ecx, dword [eax + 4]
mov edi, 0x4ab534
neg ecx
mov dword [esp + 0x78], ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x8f], 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0xc4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
push ecx
push edx
call fcn.00454d18
mov eax, dword [ebp + 0xc4]
push 1
push eax
call fcn.00454d12
mov eax, dword [ebp + 0xc4]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00454d0c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 0xc4]
or al, 3
push ecx
push eax
push edx
mov dword [esp + 0x1c], eax
call fcn.00454d06
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x3c]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x6c]
push 0x4ab10c
push edx
call fcn.00413070
mov ecx, eax
call fcn.00418210
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
jmp case.default.0x415dcc
mov eax, dword [ebp + 0x74]
test al, 0x3c
je 0x4162d3
and al, 0x14
mov ecx, dword [ebp + 0x38]
neg al
sbb eax, eax
mov esi, 0x80000000
and al, 0xfe
inc eax
mov edx, eax
mov ebx, dword [ebp + 0x38]
mov eax, edx
add eax, ebx
and eax, 7
cmp ecx, eax
mov dword [ebp + 0x38], eax
je 0x416214
mov ebx, eax
shl ebx, 4
add ebx, eax
test dword [ebx*8 + 0x4bb194], esi
je 0x4161f3
mov ecx, dword [ebp + 4]
push 0x4ab598
call fcn.004420b0
sub esp, 0x10
mov edx, dword [0x4aa0d0]
mov ebx, esp
xor eax, eax
mov esi, dword [0x4aa0d4]
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebp + 4]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
call fcn.00402ee0
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0x18c]
mov edx, dword [ebp + ecx*4 + 0x78]
push edx
push 0x4ab544
push eax
call fcn.004655c2
mov esi, dword [ebp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x18c]
push ecx
mov ecx, esi
call fcn.0041fe40
cmp eax, edi
jge 0x41628b
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x38]
call fcn.004181f0
jmp 0x416291
mov edx, dword [esi + 0x24]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
lea esi, [ebp + 0x10]
mov dword [esp + 0x58], ecx
push esi
mov dword [esp + 0x60], edx
call dword [0x4994ac]
mov eax, dword [ebp + 4]
push esi
mov ecx, dword [eax + 0x1c]
push ecx
call dword [0x4994b0]
mov edx, dword [esp + 0x58]
lea eax, [edx + edi]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x5c]
sar ecx, 1
jmp 0x417223
test al, 1
mov esi, 1
je 0x416907
mov eax, dword [ebp + 0x38]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ecx*8 + 0x4bb194]
test eax, 0x80000000
je case.default.0x415dcc
test eax, 0x7fffffff
je 0x4166fb
push 0x4ab480
lea ecx, [esp + 0x78]
call fcn.00485498
mov eax, dword [ebp + 4]
mov dword [esp + 0x224], edi
mov edx, dword [eax + 0x34]
lea ecx, [eax + 0x34]
lea eax, [esp + 0x74]
push eax
call dword [edx]
mov ecx, dword [ebp + 0x38]
dec eax
cmp ecx, eax
jne 0x416361
push 0x4ab61c
lea ecx, [esp + 0x74]
call fcn.00485498
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 4]
mov byte [esp + 0x224], 1
mov edx, dword [eax + 0x34]
lea ecx, [eax + 0x34]
lea eax, [esp + 0x70]
push eax
call dword [edx]
dec eax
jmp 0x416363
xor eax, eax
mov dword [ebp + 0x3c], eax
mov al, byte [esp + 0x10]
test al, 1
mov dword [esp + 0x224], edi
je 0x41637e
lea ecx, [esp + 0x70]
call fcn.0048542a
lea ecx, [esp + 0x74]
mov dword [esp + 0x224], 0xffffffff
call fcn.0048542a
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x38]
xor ecx, ecx
cmp eax, edi
setle cl
dec ecx
mov dword [ebp + 0x40], edi
and ecx, eax
mov eax, edx
mov esi, ecx
xor ecx, ecx
shl eax, 4
add eax, edx
mov dword [ebp + 0x3c], esi
lea eax, [eax*8 + 0x4bb194]
mov edi, 1
shl edi, cl
test dword [eax], edi
je 0x4163c8
inc dword [ebp + 0x40]
inc ecx
cmp ecx, 8
jb 0x4163ba
mov edi, 1
mov ecx, esi
shl edi, cl
test dword [eax], edi
jne 0x4163f9
mov esi, dword [ebp + 0x40]
test esi, esi
je 0x4163f9
mov ecx, dword [ebp + 0x3c]
mov edi, 1
inc ecx
and ecx, 7
shl edi, cl
mov dword [ebp + 0x3c], ecx
mov ecx, dword [eax]
test ecx, edi
je 0x4163de
mov ecx, dword [ebp + edx*4 + 0x78]
lea edx, [esp + 0x18c]
push ecx
push 0x4ab544
push edx
call fcn.004655c2
mov esi, dword [ebp + 0x24]
add esp, 0xc
lea eax, [esp + 0x18c]
mov ecx, esi
push eax
call fcn.0041fe40
xor edi, edi
cmp eax, edi
jge 0x41643a
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x38]
call fcn.004181f0
jmp 0x416440
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + eax*4]
mov esi, dword [eax]
lea ecx, [ebp + 0x54]
mov edx, ecx
mov dword [edx], esi
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [eax + 8]
mov dword [edx + 8], esi
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
mov esi, eax
shl esi, 4
shl edx, 4
add esi, eax
lea eax, [edx + esi*8 + 0x4bb114]
lea edx, [ebp + 0x64]
mov esi, dword [eax]
mov dword [edx], esi
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [eax + 8]
mov dword [edx + 8], esi
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx]
lea edx, [ebp + 0x44]
mov dword [ebp + 0x44], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
cmp eax, 2
mov dword [edx + 0xc], ecx
je 0x4164b6
cmp eax, 3
je 0x4164b6
cmp eax, ebx
jne 0x4164bc
mov dword [0x4bb084], edi
cmp dword [ebp + 8], ebx
jne 0x4164d4
mov eax, dword [ebp + 4]
mov edx, dword [ebp + 0xc8]
push edx
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00454d1e
sub esp, 0x10
mov dword [ebp + 0xc], edi
mov edi, esp
xor eax, eax
xor ecx, ecx
mov dword [ebp + 8], 3
mov edx, dword [0x4aa0d0]
mov esi, dword [0x4aa0d4]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp + 4]
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
call fcn.00402ee0
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x416517
cmp eax, 3
je 0x416517
cmp eax, ebx
jne 0x416521
mov dword [0x4bb084], 1
cmp dword [ebp + 8], 1
jne 0x41657b
mov edx, dword [ebp + 0x38]
lea ecx, [esp + 0xfc]
mov eax, dword [ebp + edx*4 + 0x78]
push eax
push 0x4ab544
push ecx
call fcn.004655c2
mov ecx, dword [ebp + 0x24]
add esp, 0xc
lea edx, [esp + 0xfc]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00413070
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
cmp dword [ebp + 8], ebx
jne 0x4166ba
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0xc4]
push edx
mov eax, dword [ecx + 0x1c]
push eax
call fcn.00454d1e
push 0x4ba4a8
mov ecx, ebp
mov dword [ebp + 0xc8], eax
mov byte [ebp + 0x98], 0
call fcn.00413120
mov ecx, ebp
call fcn.004133e0
mov eax, dword [ebp + 0xc4]
test eax, eax
je 0x416672
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x78]
push 0x4aaddc
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x9c]
lea eax, [esp + 0x3c]
push eax
call fcn.00404930
mov ecx, dword [eax + 4]
mov edi, 0x4ab534
neg ecx
mov dword [esp + 0x78], ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x8f], 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0xc4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
push ecx
push edx
call fcn.00454d18
mov eax, dword [ebp + 0xc4]
push 1
push eax
call fcn.00454d12
mov eax, dword [ebp + 0xc4]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00454d0c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 0xc4]
or al, 3
push ecx
push eax
push edx
mov dword [esp + 0x1c], eax
call fcn.00454d06
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x3c]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x6c]
push 0x4ab10c
push edx
call fcn.00413070
mov ecx, eax
call fcn.00418210
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
mov ecx, dword [ebp + 4]
push 0x4ab5bc
call fcn.004420b0
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
mov esi, eax
sub esp, 0x10
shl esi, 4
shl edx, 4
add esi, eax
mov dword [esp + 0x50], esp
mov ecx, esp
lea eax, [edx + esi*8 + 0x4bb114]
push eax
push ecx
call dword [0x49949c]
mov ecx, ebp
call fcn.004130d0
jmp case.default.0x415dcc
mov dword [ebp + 8], 5
mov dword [ebp + 0xc], edi
mov ecx, dword [0x4aa0d4]
mov edx, dword [0x4aa0d0]
push ecx
push edx
push edi
push edi
lea ecx, [esp + 0x38]
call fcn.004181f0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 4]
call fcn.00402ee0
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x416752
cmp eax, 3
je 0x416752
cmp eax, ebx
jne 0x416758
mov dword [0x4bb084], esi
cmp dword [ebp + 8], esi
jne 0x4167c0
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0xfc]
mov edx, dword [ebp + ecx*4 + 0x78]
push edx
push 0x4ab544
push eax
call fcn.004655c2
mov esi, dword [ebp + 0x24]
add esp, 0xc
lea ecx, [esp + 0xfc]
push ecx
mov ecx, esi
call fcn.0041fe40
lea edx, [esp + 0x28]
push eax
push edx
mov ecx, esi
call fcn.00413020
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, ebp
mov dword [eax + 0xc], edx
call fcn.004130d0
cmp dword [ebp + 8], ebx
jne 0x4175c4
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0xc4]
push ecx
mov eax, dword [eax + 0x1c]
push eax
call fcn.00454d1e
push 0x4ba4a8
mov ecx, ebp
mov dword [ebp + 0xc8], eax
mov byte [ebp + 0x98], 0
call fcn.00413120
mov ecx, ebp
call fcn.004133e0
cmp dword [ebp + 0xc4], edi
je 0x4168b5
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x78]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x9c]
push 0x4aaddc
push edx
call fcn.00404930
mov eax, dword [eax + 4]
mov edi, 0x4ab534
neg eax
mov dword [esp + 0x78], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x8f], 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0xc4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
push ecx
push edx
call fcn.00454d18
mov eax, dword [ebp + 0xc4]
push 1
push eax
call fcn.00454d12
mov eax, dword [ebp + 0xc4]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00454d0c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 0xc4]
or al, 3
push ecx
push eax
push edx
mov dword [esp + 0x1c], eax
call fcn.00454d06
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x3c]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x6c]
push 0x4ab10c
push edx
call fcn.00413070
mov ecx, eax
call fcn.00418210
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
push 0x4ab5bc
jmp 0x417a78
test ah, 0x20
je 0x416b14
mov dword [ebp + 0x38], 0x5a
mov dword [ebp + 8], 5
mov dword [ebp + 0xc], edi
mov ecx, dword [0x4aa0d4]
mov edx, dword [0x4aa0d0]
push ecx
push edx
push edi
push edi
lea ecx, [esp + 0x38]
call fcn.004181f0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 4]
call fcn.00402ee0
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x41696e
cmp eax, 3
je 0x41696e
cmp eax, ebx
jne 0x416974
mov dword [0x4bb084], esi
cmp dword [ebp + 8], esi
jne 0x4169cd
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0xfc]
mov edx, dword [ebp + ecx*4 + 0x78]
push edx
push 0x4ab544
push eax
call fcn.004655c2
add esp, 0xc
lea ecx, [esp + 0xfc]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
call fcn.00413070
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
cmp dword [ebp + 8], ebx
jne 0x4175c4
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0xc4]
push edx
mov eax, dword [ecx + 0x1c]
push eax
call fcn.00454d1e
push 0x4ba4a8
mov ecx, ebp
mov dword [ebp + 0xc8], eax
mov byte [ebp + 0x98], 0
call fcn.00413120
mov ecx, ebp
call fcn.004133e0
cmp dword [ebp + 0xc4], edi
je 0x416ac2
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x78]
push 0x4aaddc
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x9c]
lea eax, [esp + 0x3c]
push eax
call fcn.00404930
mov ecx, dword [eax + 4]
mov edi, 0x4ab534
neg ecx
mov dword [esp + 0x78], ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x8f], 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0xc4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
push ecx
push edx
call fcn.00454d18
mov eax, dword [ebp + 0xc4]
push 1
push eax
call fcn.00454d12
mov eax, dword [ebp + 0xc4]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00454d0c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 0xc4]
or al, 3
push ecx
push eax
push edx
mov dword [esp + 0x1c], eax
call fcn.00454d06
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x3c]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x6c]
push 0x4ab10c
push edx
call fcn.00413070
mov ecx, eax
call fcn.00418210
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
push 0x4ab5bc
jmp 0x417a78
test ah, 0x10
je case.default.0x415dcc
mov dword [ebp + 0x38], 0x5b
mov dword [ebp + 8], 5
mov dword [ebp + 0xc], edi
mov ecx, dword [0x4aa0d4]
mov edx, dword [0x4aa0d0]
push ecx
push edx
push edi
push edi
lea ecx, [esp + 0x38]
call fcn.004181f0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 4]
call fcn.00402ee0
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x416b7b
cmp eax, 3
je 0x416b7b
cmp eax, ebx
jne 0x416b81
mov dword [0x4bb084], esi
cmp dword [ebp + 8], esi
jne 0x416bda
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0xfc]
mov edx, dword [ebp + ecx*4 + 0x78]
push edx
push 0x4ab544
push eax
call fcn.004655c2
add esp, 0xc
lea ecx, [esp + 0xfc]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
call fcn.00413070
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
cmp dword [ebp + 8], ebx
jne 0x4175c4
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0xc4]
push edx
mov eax, dword [ecx + 0x1c]
push eax
call fcn.00454d1e
push 0x4ba4a8
mov ecx, ebp
mov dword [ebp + 0xc8], eax
mov byte [ebp + 0x98], 0
call fcn.00413120
mov ecx, ebp
call fcn.004133e0
cmp dword [ebp + 0xc4], edi
je 0x416ccf
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x78]
push 0x4aaddc
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x9c]
lea eax, [esp + 0x3c]
push eax
call fcn.00404930
mov ecx, dword [eax + 4]
mov edi, 0x4ab534
neg ecx
mov dword [esp + 0x78], ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x8f], 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0xc4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
push ecx
push edx
call fcn.00454d18
mov eax, dword [ebp + 0xc4]
push 1
push eax
call fcn.00454d12
mov eax, dword [ebp + 0xc4]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00454d0c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 0xc4]
or al, 3
push ecx
push eax
push edx
mov dword [esp + 0x1c], eax
call fcn.00454d06
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x3c]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x6c]
push 0x4ab10c
push edx
call fcn.00413070
mov ecx, eax
call fcn.00418210
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
push 0x4ab5bc
jmp 0x417a78
mov ecx, dword [ebp + 0x28]
push 0x4ba4a8
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab5e0
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab5dc
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab614
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab608
call fcn.004202e0
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
add ecx, 2
push ecx
mov ecx, dword [ebp + 0x44]
add edx, 2
sub eax, 2
push edx
sub ecx, 2
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.004181f0
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov ecx, dword [ebp + 4]
mov dword [edx + 0xc], eax
call fcn.00402ee0
mov eax, dword [ebp + 0x74]
test al, 0x3c
je 0x41735c
mov ecx, dword [ebp + 0x38]
mov esi, dword [ebp + 0x3c]
mov edx, ecx
lea edi, [ebp + 0x54]
shl edx, 4
add edx, ecx
mov ecx, esi
shl edx, 3
shl ecx, 4
and al, 0x14
lea ecx, [ecx + edx + 0x4bb114]
neg al
mov ebx, dword [ecx]
mov dword [edi], ebx
mov ebx, dword [ecx + 4]
mov dword [edi + 4], ebx
mov ebx, dword [ecx + 8]
sbb eax, eax
mov dword [edi + 8], ebx
mov ecx, dword [ecx + 0xc]
and al, 0xfe
mov dword [edi + 0xc], ecx
inc eax
mov ebx, 1
mov edi, dword [ebp + 0x3c]
mov ecx, eax
add ecx, edi
and ecx, 7
cmp esi, ecx
mov dword [ebp + 0x3c], ecx
je case.default.0x415dcc
mov edi, ebx
shl edi, cl
test dword [edx + 0x4bb194], edi
je 0x416df8
cmp esi, ecx
je case.default.0x415dcc
shl ecx, 4
lea eax, [ebp + 0x64]
lea edx, [ecx + edx + 0x4bb114]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x416e56
cmp eax, 3
je 0x416e56
cmp eax, 4
jne 0x416e60
mov dword [0x4bb084], 0
mov eax, dword [ebp + 8]
mov esi, 4
cmp eax, esi
jne 0x416e7f
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 0xc8]
push eax
mov edx, dword [ecx + 0x1c]
push edx
call fcn.00454d1e
mov dword [ebp + 8], 3
mov dword [ebp + 0xc], 0
mov eax, dword [0x4aa0d4]
mov ecx, dword [0x4aa0d0]
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x28]
call fcn.004181f0
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov ecx, dword [ebp + 4]
mov dword [edx + 0xc], eax
call fcn.00402ee0
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x416edb
cmp eax, 3
je 0x416edb
cmp eax, esi
jne 0x416ee1
mov dword [0x4bb084], ebx
cmp dword [ebp + 8], ebx
jne 0x416f3a
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0xfc]
mov edx, dword [ebp + ecx*4 + 0x78]
push edx
push 0x4ab544
push eax
call fcn.004655c2
add esp, 0xc
lea ecx, [esp + 0xfc]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
call fcn.00413070
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
cmp dword [ebp + 8], esi
jne 0x417078
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0xc4]
push edx
mov eax, dword [ecx + 0x1c]
push eax
call fcn.00454d1e
push 0x4ba4a8
mov ecx, ebp
mov dword [ebp + 0xc8], eax
mov byte [ebp + 0x98], 0
call fcn.00413120
mov ecx, ebp
call fcn.004133e0
mov eax, dword [ebp + 0xc4]
test eax, eax
je 0x417030
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x78]
push 0x4aaddc
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x9c]
lea eax, [esp + 0x1c]
push eax
call fcn.00404930
mov ecx, dword [eax + 4]
mov edi, 0x4ab534
neg ecx
mov dword [esp + 0x78], ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x8f], 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0xc4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
push ecx
push edx
call fcn.00454d18
mov eax, dword [ebp + 0xc4]
push ebx
push eax
call fcn.00454d12
mov eax, dword [ebp + 0xc4]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00454d0c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 0xc4]
or al, 3
push ecx
push eax
push edx
mov dword [esp + 0x1c], eax
call fcn.00454d06
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x3c]
push eax
lea eax, [esp + 0x1c]
push edx
push eax
lea edx, [esp + 0x4c]
push 0x4ab10c
push edx
call fcn.00413070
mov ecx, eax
call fcn.00418210
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
mov ecx, dword [ebp + 4]
push 0x4ab598
call fcn.004420b0
mov esi, dword [ebp + 0x28]
push 0x4ab600
mov ecx, esi
call fcn.0041fe40
lea ecx, [esp + 0xe4]
push eax
push ecx
mov ecx, esi
call fcn.00413020
mov edx, dword [ebp + 0x58]
mov ecx, dword [esp + 0xe8]
mov edi, dword [ebp + 0x68]
mov ebx, dword [ebp + 0x5c]
mov eax, dword [esp + 0xec]
mov esi, dword [ebp + 0x6c]
sub edx, ecx
sub edi, ecx
mov ecx, dword [ebp + 0x28]
push 0x4ab5e0
sub ebx, eax
mov dword [esp + 0x18], edx
sub esi, eax
mov dword [esp + 0x44], ecx
call fcn.0041fe40
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x60]
push eax
push edx
call fcn.00413020
mov ecx, dword [ebp + 0x28]
push 0x4ab5dc
mov dword [esp + 0x44], ecx
call fcn.0041fe40
mov ecx, dword [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00413020
lea ecx, [esp + 0x38]
push ecx
call dword [0x4994ac]
mov eax, dword [ebp + 4]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 0x1c]
push ecx
call dword [0x4994b0]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x6c]
push edx
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x30], ecx
call dword [0x4994c4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc0], ecx
push edx
push eax
lea ecx, [esp + 0xbc]
push ecx
call dword [0x4994a4]
test eax, eax
je 0x41723c
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x6c]
push edi
lea eax, [esp + 0x1c]
push esi
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [0x4994c4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea esi, [ebp + 0x10]
mov dword [esp + 0x58], ecx
push esi
mov dword [esp + 0x60], edx
call dword [0x4994ac]
mov eax, dword [ebp + 4]
push esi
mov ecx, dword [eax + 0x1c]
push ecx
call dword [0x4994b0]
mov edx, dword [esp + 0x58]
lea eax, [edx + edi]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x5c]
sar ecx, 1
add eax, ebx
cdq
sub eax, edx
mov dword [ebp + 0x18], ecx
sar eax, 1
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], 0xa
jmp case.default.0x415dcc
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
mov dword [esp + 0x30], eax
call dword [0x4994c4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xcc], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0xd0], eax
push ecx
lea eax, [esp + 0xc8]
push edx
push eax
call dword [0x4994a4]
test eax, eax
je 0x41733c
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
push edi
lea edx, [esp + 0x1c]
push esi
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call dword [0x4994c4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea esi, [ebp + 0x10]
mov dword [esp + 0x58], eax
push esi
mov dword [esp + 0x60], ecx
call dword [0x4994ac]
mov edx, dword [ebp + 4]
push esi
mov eax, dword [edx + 0x1c]
push eax
call dword [0x4994b0]
mov ecx, dword [esp + 0x58]
lea eax, [ecx + edi]
cdq
sub eax, edx
mov edx, dword [esp + 0x5c]
mov ecx, eax
sar ecx, 1
lea eax, [edx + ebx]
jmp 0x417225
sub esp, 0x10
lea ecx, [ebp + 0x64]
mov dword [esp + 0x50], esp
mov eax, esp
push ecx
push eax
call dword [0x49949c]
mov ecx, ebp
call fcn.004130d0
jmp case.default.0x415dcc
test al, 1
mov edi, 1
je 0x4175ce
mov ecx, dword [ebp + 0x38]
mov edx, edi
mov eax, ecx
shl eax, 4
add eax, ecx
mov ecx, dword [ebp + 0x3c]
shl eax, 3
shl edx, cl
test dword [eax + 0x4bb194], edx
je case.default.0x415dcc
mov esi, dword [eax + 0x4bb110]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp esi, 0xf
setne cl
add ecx, ebx
cmp eax, 2
mov esi, ecx
je 0x4173ac
cmp eax, 3
je 0x4173ac
cmp eax, ebx
jne 0x4173b6
mov dword [0x4bb084], 0
cmp dword [ebp + 8], ebx
jne 0x4173ce
mov eax, dword [ebp + 4]
mov edx, dword [ebp + 0xc8]
push edx
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00454d1e
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], 0
mov edx, dword [0x4aa0d4]
mov eax, dword [0x4aa0d0]
push edx
push eax
push 0
push 0
lea ecx, [esp + 0x38]
call fcn.004181f0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 4]
call fcn.00402ee0
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x417426
cmp eax, 3
je 0x417426
cmp eax, ebx
jne 0x41742c
mov dword [0x4bb084], edi
cmp dword [ebp + 8], edi
jne 0x417485
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0xfc]
mov edx, dword [ebp + ecx*4 + 0x78]
push edx
push 0x4ab544
push eax
call fcn.004655c2
add esp, 0xc
lea ecx, [esp + 0xfc]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
call fcn.00413070
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
cmp dword [ebp + 8], ebx
jne 0x4175c4
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0xc4]
push edx
mov eax, dword [ecx + 0x1c]
push eax
call fcn.00454d1e
push 0x4ba4a8
mov ecx, ebp
mov dword [ebp + 0xc8], eax
mov byte [ebp + 0x98], 0
call fcn.00413120
mov ecx, ebp
call fcn.004133e0
mov eax, dword [ebp + 0xc4]
test eax, eax
je 0x41757c
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x78]
push 0x4aaddc
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x9c]
lea eax, [esp + 0x1c]
push eax
call fcn.00404930
mov ecx, dword [eax + 4]
mov edi, 0x4ab534
neg ecx
mov dword [esp + 0x78], ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x8f], 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0xc4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
push ecx
push edx
call fcn.00454d18
mov eax, dword [ebp + 0xc4]
push 1
push eax
call fcn.00454d12
mov eax, dword [ebp + 0xc4]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00454d0c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 0xc4]
or al, 3
push ecx
push eax
push edx
mov dword [esp + 0x1c], eax
call fcn.00454d06
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x3c]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x6c]
push 0x4ab10c
push edx
call fcn.00413070
mov ecx, eax
call fcn.00418210
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004130d0
push 0x4ab5bc
jmp 0x417a78
test al, 2
je case.default.0x415dcc
push edi
mov ecx, ebp
call fcn.00417db0
jmp 0x417a73
mov ecx, dword [ebp + 0x28]
push 0x4ba4a8
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab5e0
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab5dc
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab614
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab608
call fcn.004202e0
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
add ecx, 2
push ecx
mov ecx, dword [ebp + 0x44]
add edx, 2
sub eax, 2
push edx
sub ecx, 2
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.004181f0
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov ecx, dword [ebp + 4]
mov dword [edx + 0xc], eax
call fcn.00402ee0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x54]
mov esi, 0xa
sub esi, ecx
imul edx, ecx
imul eax, esi
add edx, eax
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x44], edx
mov edx, dword [ebp + 0x6c]
imul edx, ecx
imul eax, esi
add edx, eax
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x4c], edx
mov edx, dword [ebp + 0x68]
imul edx, ecx
imul eax, esi
add edx, eax
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ebp + 0x48], edx
mov edx, dword [ebp + 0x70]
imul edx, ecx
mov ecx, dword [ebp + 0x60]
mov eax, 0x66666667
imul ecx, esi
add edx, ecx
mov esi, dword [ebp + 0x28]
imul edx
sar edx, 2
mov eax, edx
push 0x4ab600
shr eax, 0x1f
add edx, eax
mov ecx, esi
mov dword [ebp + 0x50], edx
call fcn.0041fe40
lea ecx, [esp + 0xd4]
push eax
push ecx
mov ecx, esi
call fcn.00413020
mov eax, dword [ebp + 0x48]
mov ebx, dword [esp + 0xd8]
mov edx, dword [ebp + 0x4c]
mov edi, dword [esp + 0xdc]
mov ecx, dword [ebp + 0x28]
sub eax, ebx
sub edx, edi
push 0x4ba4a8
mov dword [ecx + 0x3c], edx
mov dword [ecx + 0x40], eax
mov ecx, dword [ebp + 0x28]
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab5e0
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab5dc
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab614
call fcn.004202e0
mov ecx, dword [ebp + 0x28]
push 0x4ab608
call fcn.004202e0
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x48]
add eax, 2
push eax
mov eax, dword [ebp + 0x44]
add ecx, 2
sub edx, 2
push ecx
sub eax, 2
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.004181f0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 4]
call fcn.00402ee0
cmp dword [ebp + 0xc], 0xa
jne case.default.0x415dcc
push 2
mov ecx, ebp
call fcn.00417db0
jmp case.default.0x415dcc
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 0x40]
mov eax, dword [ecx + 0x3c]
push edx
lea edx, [esp + 0x54]
push eax
push edx
lea eax, [esp + 0x188]
push 0x4ab54c
push eax
call fcn.00413070
mov ecx, eax
call fcn.00418210
mov ecx, dword [0x4bb07c]
lea edx, [esp + 0xf4]
push ecx
mov ecx, dword [ebp + 0x9c]
push edx
call fcn.00404930
mov ecx, dword [esp + 0x50]
mov esi, dword [eax]
mov eax, dword [esp + 0x5c]
add ecx, esi
push eax
mov eax, dword [esp + 0x58]
lea edx, [ecx + 2]
mov dword [esp + 0x54], ecx
push edx
push eax
push ecx
lea ecx, [esp + 0x21c]
call fcn.004181f0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 4]
call fcn.00402ee0
test byte [0x4bb048], 1
je 0x417917
mov ecx, dword [ebp + 0x74]
test ch, 1
je 0x4178b5
mov eax, dword [ebp + 0xb8]
cmp eax, edi
je 0x41789b
dec eax
push 1
push eax
mov ecx, ebp
call fcn.00417d40
jmp 0x41793f
test ecx, 0x20000
jne 0x41793f
push 1
mov ecx, ebp
call fcn.00417ab0
jmp 0x41793f
test ch, 2
je 0x4178cd
mov ecx, dword [ebp + 0xb8]
push 1
inc ecx
push ecx
mov ecx, ebp
call fcn.00417d40
jmp 0x41793f
test bl, cl
je 0x4178df
mov eax, dword [ebp + 0xb4]
cmp eax, edi
jle 0x4178a7
dec eax
push eax
jmp 0x417938
test cl, 8
je 0x4178ee
mov edx, dword [ebp + 0xb4]
inc edx
push edx
jmp 0x417938
test cl, 0x30
je 0x41793f
mov ecx, dword [0x4bb048]
xor ecx, ebx
mov dword [0x4bb048], ecx
mov ecx, ebp
call fcn.00414f20
mov ecx, dword [ebp + 4]
push 0x4ab5d0
call fcn.004420b0
jmp 0x41793f
mov eax, dword [ebp + 0x74]
test ah, 2
je 0x41792a
push 1
mov ecx, ebp
call fcn.00417ab0
jmp 0x41793f
test al, 8
je 0x41793f
push 1
mov ecx, ebp
call fcn.00417ab0
push edi
mov ecx, ebp
call fcn.00417ca0
mov eax, dword [ebp + 0x74]
test al, 1
je 0x417a11
test eax, 0x10000
je 0x417987
test byte [0x4bb048], 1
je 0x417987
mov eax, dword [ebp + 0xb4]
cmp eax, edi
jl 0x417987
cmp eax, dword [ebp + 0xa8]
jge 0x417987
mov ecx, dword [ebp + 0xa4]
mov edx, dword [ecx + eax*4]
mov ecx, ebp
push edx
call fcn.00413120
push 0x4ab5bc
jmp 0x417a78
mov eax, dword [0x4bb07c]
cmp dword [eax - 8], edi
je case.default.0x415dcc
mov eax, dword [0x4bb070]
xor esi, esi
cmp eax, edi
jle 0x4179d4
mov ecx, dword [0x4bb06c]
mov edx, dword [0x4bb07c]
push edx
mov eax, dword [ecx + esi*4]
push eax
call fcn.00464a16
add esp, 8
test eax, eax
jne 0x4179ca
push 1
push esi
mov ecx, 0x4bb068
call fcn.00484376
mov eax, dword [0x4bb070]
inc esi
cmp esi, eax
jl 0x4179a0
push 1
push 0x4bb07c
push 0
mov ecx, 0x4bb068
call fcn.0048433d
mov eax, dword [0x4bb070]
cmp eax, 0x12c
jle 0x417a01
dec eax
push 1
push eax
mov ecx, 0x4bb068
call fcn.00484376
push 5
mov ecx, ebp
call fcn.00417db0
push 0x4ab5bc
jmp 0x417a78
test al, 2
je case.default.0x415dcc
test eax, 0x10000
je 0x417a30
cmp dword [ebp + 0xb4], 0xffffffff
je 0x417a30
push 0xffffffffffffffff
mov ecx, ebp
call fcn.00417ca0
jmp 0x417a73
cmp dword [ebp + 0xcc], edi
je 0x417a4f
push str.CANCEL
mov ecx, ebp
call fcn.00413120
push 5
mov ecx, ebp
call fcn.00417db0
jmp 0x417a73
push 2
mov ecx, ebp
call fcn.00417db0
sub esp, 0x10
lea ecx, [ebp + 0x44]
mov dword [esp + 0x50], esp
mov eax, esp
push ecx
push eax
call dword [0x49949c]
mov ecx, ebp
call fcn.004130d0
push 0x4ab554
mov ecx, dword [ebp + 4]
call fcn.004420b0
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x218
ret